...
|
...
|
@@ -178,7 +178,11 @@ gulp.task('postcss', ['assets'], () => { |
|
|
// webpack dev server
|
|
|
gulp.task('webpack-dev-server', () => {
|
|
|
var devConfig = Object.assign({}, webpackConfig, {
|
|
|
debug: true
|
|
|
debug: true,
|
|
|
vue: {
|
|
|
postcss: postcssPlugin(env.dev),
|
|
|
autoprefixer: false
|
|
|
}
|
|
|
});
|
|
|
|
|
|
new WebpackDevServer(webpack(devConfig), {
|
...
|
...
|
@@ -201,7 +205,12 @@ gulp.task('webpack-dev-server', () => { |
|
|
|
|
|
// webpack compile in pro
|
|
|
gulp.task('webpack', (done) => {
|
|
|
const proConfig = Object.assign({}, webpackConfig);
|
|
|
const proConfig = Object.assign({}, webpackConfig, {
|
|
|
vue: {
|
|
|
postcss: postcssPlugin(env.pro),
|
|
|
autoprefixer: false
|
|
|
}
|
|
|
});
|
|
|
|
|
|
proConfig.output.path = dist.js;
|
|
|
|
...
|
...
|
|