update omi-cli
This commit is contained in:
parent
b70f321fd3
commit
41cf5bde0f
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "omi-cli",
|
||||
"version": "0.1.3",
|
||||
"version": "0.1.4",
|
||||
"description": "CLI for scaffolding Omi.js projects.",
|
||||
"main": "bin/omi",
|
||||
"engines": {
|
||||
|
|
|
@ -59,7 +59,7 @@ if(ENV === 'dist'){
|
|||
}else{
|
||||
config.entry.vendor = ['omi','./src/common/class_list.js'];
|
||||
config.output.filename = '[name].js';
|
||||
config.plugins[1] = new webpack.optimize.CommonsChunkPlugin(/* chunkName= */"vendor", /* filename= */"vendor.[chunkhash:8].js")
|
||||
config.plugins[1] = new webpack.optimize.CommonsChunkPlugin(/* chunkName= */"vendor", /* filename= */"vendor.js")
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@ gulp.task('browser-sync',function(){
|
|||
|
||||
if(!isDist) {
|
||||
gulp.watch(ENV + '/**').on('change', browserSync.reload);
|
||||
gulp.watch(['src/component/**/*.**', 'src/js/*.js', 'common/*.js'], function () {
|
||||
gulp.watch(['src/component/**/*.**','src/component/*.**', 'src/js/*.js', 'common/*.js'], function () {
|
||||
runSequence(
|
||||
'webpack',
|
||||
'replace');
|
||||
|
|
|
@ -59,7 +59,7 @@ if(ENV === 'dist'){
|
|||
}else{
|
||||
config.entry.vendor = ['omi','./src/common/class_list.js'];
|
||||
config.output.filename = '[name].js';
|
||||
config.plugins[1] = new webpack.optimize.CommonsChunkPlugin(/* chunkName= */"vendor", /* filename= */"vendor.[chunkhash:8].js")
|
||||
config.plugins[1] = new webpack.optimize.CommonsChunkPlugin(/* chunkName= */"vendor", /* filename= */"vendor.js")
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ if(ENV === 'dist'){
|
|||
}else{
|
||||
config.entry.vendor = ['omi','./src/common/class_list.js'];
|
||||
config.output.filename = '[name].js';
|
||||
config.plugins[1] = new webpack.optimize.CommonsChunkPlugin(/* chunkName= */"vendor", /* filename= */"vendor.[chunkhash:8].js")
|
||||
config.plugins[1] = new webpack.optimize.CommonsChunkPlugin(/* chunkName= */"vendor", /* filename= */"vendor.js")
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue