...
|
...
|
@@ -148,7 +148,7 @@ gulp.task('dist', ['ge'], () => { |
|
|
|
|
|
// postcss compile in dev
|
|
|
gulp.task('postcss-dev', () => {
|
|
|
return gulp.src(['scss/shop.css', 'scss/index.css'])
|
|
|
return gulp.src(['scss/shop.css', 'scss/index.css', 'scss/common.css'])
|
|
|
.pipe(sourcemaps.init())
|
|
|
.pipe(postcss(postcssPlugin(env.dev), {
|
|
|
parser: require('postcss-scss')
|
...
|
...
|
@@ -219,7 +219,7 @@ gulp.task('webpack-dev-server', () => { |
|
|
devConfig.plugins[0] = new ExtractTextPlugin('bundle/[name].css');
|
|
|
devConfig.plugins.push(new webpack.HotModuleReplacementPlugin());
|
|
|
|
|
|
devConfig.entry.libs.unshift(`webpack-dev-server/client?${devConfig.output.publicPath}`, 'webpack/hot/dev-server');
|
|
|
// devConfig.entry.libs.unshift(`webpack-dev-server/client?${devConfig.output.publicPath}`, 'webpack/hot/dev-server');
|
|
|
|
|
|
new WebpackDevServer(webpack(devConfig), {
|
|
|
contentBase: '.',
|
...
|
...
|
|