|
@@ -178,7 +178,11 @@ gulp.task('postcss', ['assets'], () => { |
|
@@ -178,7 +178,11 @@ gulp.task('postcss', ['assets'], () => { |
178
|
// webpack dev server
|
178
|
// webpack dev server
|
179
|
gulp.task('webpack-dev-server', () => {
|
179
|
gulp.task('webpack-dev-server', () => {
|
180
|
var devConfig = Object.assign({}, webpackConfig, {
|
180
|
var devConfig = Object.assign({}, webpackConfig, {
|
181
|
- debug: true
|
181
|
+ debug: true,
|
|
|
182
|
+ vue: {
|
|
|
183
|
+ postcss: postcssPlugin(env.dev),
|
|
|
184
|
+ autoprefixer: false
|
|
|
185
|
+ }
|
182
|
});
|
186
|
});
|
183
|
|
187
|
|
184
|
new WebpackDevServer(webpack(devConfig), {
|
188
|
new WebpackDevServer(webpack(devConfig), {
|
|
@@ -201,7 +205,12 @@ gulp.task('webpack-dev-server', () => { |
|
@@ -201,7 +205,12 @@ gulp.task('webpack-dev-server', () => { |
201
|
|
205
|
|
202
|
// webpack compile in pro
|
206
|
// webpack compile in pro
|
203
|
gulp.task('webpack', (done) => {
|
207
|
gulp.task('webpack', (done) => {
|
204
|
- const proConfig = Object.assign({}, webpackConfig);
|
208
|
+ const proConfig = Object.assign({}, webpackConfig, {
|
|
|
209
|
+ vue: {
|
|
|
210
|
+ postcss: postcssPlugin(env.pro),
|
|
|
211
|
+ autoprefixer: false
|
|
|
212
|
+ }
|
|
|
213
|
+ });
|
205
|
|
214
|
|
206
|
proConfig.output.path = dist.js;
|
215
|
proConfig.output.path = dist.js;
|
207
|
|
216
|
|