gulpfile compile temporary just copy app.js file

This commit is contained in:
Roman Timashev committed 2017-09-08 19:50:20 +03:00
1 parent 77e1b01f61
commit b0b518fd8c
1 file changed
+22 -22
+22 -22
View File
@@ -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'))
})