Commit 986572e0 by hfpp2012 yinsigan

webpack dashboard

1 parent 8226ee62
......@@ -4,9 +4,9 @@ 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 Dashboard = require('webpack-dashboard');
// const DashboardPlugin = require('webpack-dashboard/plugin');
// const dashboard = new Dashboard();
const HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
template: './src/index.html',
......@@ -54,7 +54,7 @@ module.exports = {
plugins: [
HtmlWebpackPluginConfig,
new ExtractTextPlugin("styles.css"),
new OpenBrowserPlugin({ url: 'http://localhost:3000' }),
new DashboardPlugin(dashboard.setData)
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!