Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
hfpp2012
/
react-spd
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 986572e0
authored
May 23, 2017
by
hfpp2012 yinsigan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
webpack dashboard
1 parent
8226ee62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
webpack.config.js
webpack.config.js
View file @
986572e
...
@@ -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)
]
]
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment