Commit 8226ee62 by hfpp2012 yinsigan

webpack dashboard

1 parent f4ee87ae
......@@ -4,7 +4,8 @@
"main": "index.js",
"license": "MIT",
"scripts": {
"start": "webpack-dev-server"
"start": "webpack-dev-server",
"dashboard": "webpack-dev-server --quiet"
},
"dependencies": {
"autobind-decorator": "^1.4.1",
......@@ -39,6 +40,7 @@
"node-sass": "^4.5.3",
"open-browser-webpack-plugin": "^0.0.5",
"sass-loader": "^6.0.5",
"style-loader": "^0.17.0"
"style-loader": "^0.17.0",
"webpack-dashboard": "^0.4.0"
}
}
......@@ -4,6 +4,10 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const Dashboard = require('webpack-dashboard');
const DashboardPlugin = require('webpack-dashboard/plugin');
const dashboard = new Dashboard();
const HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
template: './src/index.html',
filename: 'index.html',
......@@ -50,6 +54,7 @@ module.exports = {
plugins: [
HtmlWebpackPluginConfig,
new ExtractTextPlugin("styles.css"),
new OpenBrowserPlugin({ url: 'http://localhost:3000' })
new OpenBrowserPlugin({ url: 'http://localhost:3000' }),
new DashboardPlugin(dashboard.setData)
]
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!