update omi-cli

This commit is contained in:
dntzhang 2017-03-03 15:14:01 +08:00
parent b70f321fd3
commit 41cf5bde0f
5 changed files with 5 additions and 5 deletions

View File

@ -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": {

View File

@ -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")
}

View File

@ -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');

View File

@ -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")
}

View File

@ -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")
}