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 8226ee62
authored
May 22, 2017
by
hfpp2012 yinsigan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
webpack dashboard
1 parent
f4ee87ae
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
package.json
webpack.config.js
yarn.lock
package.json
View file @
8226ee6
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
"main"
:
"index.js"
,
"main"
:
"index.js"
,
"license"
:
"MIT"
,
"license"
:
"MIT"
,
"scripts"
:
{
"scripts"
:
{
"start"
:
"webpack-dev-server"
"start"
:
"webpack-dev-server"
,
"dashboard"
:
"webpack-dev-server --quiet"
},
},
"dependencies"
:
{
"dependencies"
:
{
"autobind-decorator"
:
"^1.4.1"
,
"autobind-decorator"
:
"^1.4.1"
,
...
@@ -39,6 +40,7 @@
...
@@ -39,6 +40,7 @@
"node-sass"
:
"^4.5.3"
,
"node-sass"
:
"^4.5.3"
,
"open-browser-webpack-plugin"
:
"^0.0.5"
,
"open-browser-webpack-plugin"
:
"^0.0.5"
,
"sass-loader"
:
"^6.0.5"
,
"sass-loader"
:
"^6.0.5"
,
"style-loader"
:
"^0.17.0"
"style-loader"
:
"^0.17.0"
,
"webpack-dashboard"
:
"^0.4.0"
}
}
}
}
webpack.config.js
View file @
8226ee6
...
@@ -4,6 +4,10 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
...
@@ -4,6 +4,10 @@ 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
DashboardPlugin
=
require
(
'webpack-dashboard/plugin'
);
const
dashboard
=
new
Dashboard
();
const
HtmlWebpackPluginConfig
=
new
HtmlWebpackPlugin
({
const
HtmlWebpackPluginConfig
=
new
HtmlWebpackPlugin
({
template
:
'./src/index.html'
,
template
:
'./src/index.html'
,
filename
:
'index.html'
,
filename
:
'index.html'
,
...
@@ -50,6 +54,7 @@ module.exports = {
...
@@ -50,6 +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
)
]
]
}
}
yarn.lock
View file @
8226ee6
This diff is collapsed.
Click to expand it.
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