gulpfile compile temporary just copy app.js file
This commit is contained in:
1 parent
77e1b01f61
commit
b0b518fd8c
1 file changed
+22
-22
+22
-22
@@ -74,28 +74,28 @@ gulp.task('compile', () => {
|
||||
return gulp.src([
|
||||
'./src/public/app.js'
|
||||
])
|
||||
.pipe(named())
|
||||
.pipe(webpack({
|
||||
devtool: doSourceMaps ? 'inline-source-map' : null,
|
||||
watch: doWatch,
|
||||
output: {
|
||||
filename: '[name].js'
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{test: /\.js$/, loader: 'babel'},
|
||||
{test: /\.html$/, loader: 'raw!html-minify'}
|
||||
]
|
||||
},
|
||||
'html-minify-loader': {
|
||||
empty: true,
|
||||
cdata: true,
|
||||
comments: false,
|
||||
dom: {
|
||||
lowerCaseAttributeNames: false
|
||||
}
|
||||
}
|
||||
}))
|
||||
//.pipe(named())
|
||||
//.pipe(webpack({
|
||||
// devtool: doSourceMaps ? 'inline-source-map' : null,
|
||||
// watch: doWatch,
|
||||
// output: {
|
||||
// filename: '[name].js'
|
||||
// },
|
||||
// module: {
|
||||
// loaders: [
|
||||
// {test: /\.js$/, loader: 'babel'},
|
||||
// {test: /\.html$/, loader: 'raw!html-minify'}
|
||||
// ]
|
||||
// },
|
||||
// 'html-minify-loader': {
|
||||
// empty: true,
|
||||
// cdata: true,
|
||||
// comments: false,
|
||||
// dom: {
|
||||
// lowerCaseAttributeNames: false
|
||||
// }
|
||||
// }
|
||||
//}))
|
||||
.pipe(gulp.dest('./public'))
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user