Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack-dashboard让你的webpack具有可视化效果 #153

Open
GuoYongfeng opened this issue Nov 20, 2016 · 0 comments
Open

webpack-dashboard让你的webpack具有可视化效果 #153

GuoYongfeng opened this issue Nov 20, 2016 · 0 comments

Comments

@GuoYongfeng
Copy link
Member

GuoYongfeng commented Nov 20, 2016

webpack-dashboard让你的webpack具有可视化效果

webpack-dashboard是一个为你的webpack dev server提供dashboard展示的cli工具

抢先预览效果

如何使用

下载

$ npm install webpack-dashboard --save-dev

修改webpack.config.js

// Import the plugin:
var DashboardPlugin = require('webpack-dashboard/plugin');

// If you aren't using express, add it to your webpack configs plugins section:
plugins: [
    new DashboardPlugin()
]

// If you are using an express based dev server, add it with compiler.apply
compiler.apply(new DashboardPlugin());

修改package.json

"scripts": {
    "dev": "webpack-dashboard -- node index.js"
}
@GuoYongfeng GuoYongfeng changed the title 使用webpack-dashboard帮助你更好的使用webpack webpack-dashboard让你的webpack具有可视化效果 Nov 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant