UI
This commit is contained in:
@ -18,16 +18,16 @@ let output_dir = './public/assets'
|
||||
|
||||
function js(done) {
|
||||
return src(path.join(source_dir, 'js', '**', '*.js'))
|
||||
.pipe(bro())
|
||||
//.pipe(bro())
|
||||
.pipe(concat('main.js'))
|
||||
.pipe(dest(path.join(output_dir, 'scripts')))
|
||||
.pipe(sourcemaps.init({loadMaps: true}))
|
||||
.pipe(babel({
|
||||
presets: ['@babel/preset-env']
|
||||
}))
|
||||
.pipe(sourcemaps.init({loadMaps: true}))
|
||||
.pipe(uglify())
|
||||
.pipe(sourcemaps.write('./maps'))
|
||||
.pipe(rename('main.min.js'))
|
||||
.pipe(sourcemaps.write('./maps'))
|
||||
.pipe(dest(path.join(output_dir, 'scripts')))
|
||||
}
|
||||
|
||||
@ -58,6 +58,6 @@ function css(done) {
|
||||
.pipe(dest(path.join(output_dir, 'images')))
|
||||
}*/
|
||||
|
||||
exports.watch = watch(source_dir, parallel(js, css/*, html*/))
|
||||
//exports.watch = watch(source_dir, parallel(js, css/*, html*/))
|
||||
|
||||
exports.default = parallel(js, css/*, html*/)
|
||||
|
Reference in New Issue
Block a user