Comparing version 1.0.4 to 1.0.5
@@ -10,3 +10,2 @@ /** | ||
const gulp = require('gulp'); | ||
const gulpWebpack = require('gulp-webpack'); | ||
const webpackStream = require('webpack-stream'); | ||
@@ -43,4 +42,11 @@ const sass = require('gulp-sass'); | ||
}), | ||
new webpack.optimize.UglifyJsPlugin() | ||
] : [], | ||
new webpack.optimize.UglifyJsPlugin(), | ||
new wk.optimize.CommonsChunkPlugin({ | ||
name: 'vendor' // Specify the common bundle's name. | ||
}) | ||
] : [ | ||
new wk.optimize.CommonsChunkPlugin({ | ||
name: 'vendor' // Specify the common bundle's name. | ||
}) | ||
], | ||
watch: env !== 'production' | ||
@@ -51,3 +57,5 @@ }; | ||
return gulp.src('src/**/*.jsx') | ||
.pipe(webpackStream(webpackCof, webpack)) | ||
.pipe(webpackStream(webpackCof, webpack).on('error', (err) => { | ||
console.log('webpack error', err) | ||
})) | ||
.pipe(gulp.dest('dist/')); | ||
@@ -54,0 +62,0 @@ }); |
{ | ||
"name": "do-keel", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "[构建中,请勿使用] keel 是基于react.js的脚手架,可以一键生成react项目的环境。", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13578
280