...
|
...
|
@@ -186,7 +186,7 @@ gulp.task('postcss', ['assets'], () => { |
|
|
|
|
|
// webpack dev server
|
|
|
gulp.task('webpack-dev-server', () => {
|
|
|
const isMac = process.platform === 'darwin';
|
|
|
const useDashboard = process.platform === 'darwin' || process.platform === 'linux';
|
|
|
const devConfig = Object.assign({}, webpackConfig, {
|
|
|
devtool: '#inline-source-map',
|
|
|
vue: {
|
...
|
...
|
@@ -204,7 +204,7 @@ gulp.task('webpack-dev-server', () => { |
|
|
});
|
|
|
|
|
|
// webpackDashboardPlugin
|
|
|
if (isMac) {
|
|
|
if (useDashboard) {
|
|
|
const dashboard = new Dashboard();
|
|
|
|
|
|
devConfig.plugins.push(new DashboardPlugin(dashboard.setData));
|
...
|
...
|
@@ -216,7 +216,7 @@ gulp.task('webpack-dev-server', () => { |
|
|
contentBase: '.',
|
|
|
publicPath: '//localhost:5004/',
|
|
|
inline: true,
|
|
|
quiet: isMac,
|
|
|
quiet: useDashboard,
|
|
|
stats: {
|
|
|
colors: true
|
|
|
},
|
...
|
...
|
|