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([
|
return gulp.src([
|
||||||
'./src/public/app.js'
|
'./src/public/app.js'
|
||||||
])
|
])
|
||||||
.pipe(named())
|
//.pipe(named())
|
||||||
.pipe(webpack({
|
//.pipe(webpack({
|
||||||
devtool: doSourceMaps ? 'inline-source-map' : null,
|
// devtool: doSourceMaps ? 'inline-source-map' : null,
|
||||||
watch: doWatch,
|
// watch: doWatch,
|
||||||
output: {
|
// output: {
|
||||||
filename: '[name].js'
|
// filename: '[name].js'
|
||||||
},
|
// },
|
||||||
module: {
|
// module: {
|
||||||
loaders: [
|
// loaders: [
|
||||||
{test: /\.js$/, loader: 'babel'},
|
// {test: /\.js$/, loader: 'babel'},
|
||||||
{test: /\.html$/, loader: 'raw!html-minify'}
|
// {test: /\.html$/, loader: 'raw!html-minify'}
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
'html-minify-loader': {
|
// 'html-minify-loader': {
|
||||||
empty: true,
|
// empty: true,
|
||||||
cdata: true,
|
// cdata: true,
|
||||||
comments: false,
|
// comments: false,
|
||||||
dom: {
|
// dom: {
|
||||||
lowerCaseAttributeNames: false
|
// lowerCaseAttributeNames: false
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}))
|
//}))
|
||||||
.pipe(gulp.dest('./public'))
|
.pipe(gulp.dest('./public'))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user