[www] gulp compile updated: compile with webpack and babel
This commit is contained in:
1 parent
a72fe8b14d
commit
d2f578c1c8
1 file changed
+11
-11
+11
-11
@@ -74,19 +74,19 @@ 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,
|
||||||
@@ -95,7 +95,7 @@ gulp.task('compile', () => {
|
|||||||
// lowerCaseAttributeNames: false
|
// lowerCaseAttributeNames: false
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
//}))
|
}))
|
||||||
.pipe(gulp.dest('./public'))
|
.pipe(gulp.dest('./public'))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user