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([ 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'))
}) })