使用Webpack模塊打包器面板
網址:webpack
webpack面板:Webpack-dashboardweb
插件在Github網站上星數超過10000。npm
安裝:json
npm install webpack-dashboard --save-dev
配置webpack.config.jswebpack-dev-server
在頭部加入引入:網站
const DashboradPlugin = require("webpack-dashboard/plugin");ui
在plugins字段加入插件。spa
plugins:[ new DashboradPlugin() ]
配置package.json插件
"scripts": { "build": "webpack --progress", "start": "webpack-dashboard -- webpack-dev-server -d --hot --config webpack.config.js --watch", "production": "NODE_ENV=production webpack -p" },
啓動:code
用npm run start命令啓動webpack,而後就能看到: