Commit 986572e0 by hfpp2012 yinsigan

webpack dashboard

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