Skip to content

Commit 3c59d6f

Browse files
author
Guillaume Chau
committed
feat(ui): client addons, ipc, shared data, plugin actions
1 parent fd7868c commit 3c59d6f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2506
-58
lines changed

.postcssrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"plugins": {
3+
"autoprefixer": {}
4+
}
5+
}

packages/@vue/cli-plugin-eslint/ui.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ module.exports = api => {
6868
description: 'Do not fix errors'
6969
}
7070
],
71-
onRun: ({ answers, args }) => {
71+
onBeforeRun: ({ answers, args }) => {
7272
if (answers.noFix) {
7373
args.push('--no-fix')
7474
}

packages/@vue/cli-service/lib/commands/build/index.js

+8
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ module.exports = (api, options) => {
9797
targetDir
9898
)
9999

100+
// Expose advanced stats
101+
if (args.dashboard) {
102+
const DashboardPlugin = require('../../webpack/DashboardPlugin')
103+
;(webpackConfig.plugins = webpackConfig.plugins || []).push(new DashboardPlugin({
104+
type: 'build'
105+
}))
106+
}
107+
100108
return new Promise((resolve, reject) => {
101109
rimraf(targetDir, err => {
102110
if (err) {

packages/@vue/cli-service/lib/commands/serve.js

+10
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ module.exports = (api, options) => {
4949
return portPromise.then(port => new Promise((resolve, reject) => {
5050
const webpackConfig = api.resolveWebpackConfig()
5151

52+
// Expose advanced stats
53+
if (args.dashboard) {
54+
const DashboardPlugin = require('../webpack/DashboardPlugin')
55+
;(webpackConfig.plugins = webpackConfig.plugins || []).push(new DashboardPlugin({
56+
type: 'serve',
57+
gzip: false,
58+
minified: false
59+
}))
60+
}
61+
5262
const urls = prepareURLs(
5363
useHttps ? 'https' : 'http',
5464
host,

0 commit comments

Comments
 (0)