Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
web-monitor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
web-monitor
Commits
6e859e0f
Commit
6e859e0f
authored
Aug 29, 2017
by
Pan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev add favicon.ico
parent
f65e714e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
webpack.dev.conf.js
build/webpack.dev.conf.js
+6
-0
No files found.
build/webpack.dev.conf.js
View file @
6e859e0f
var
utils
=
require
(
'./utils'
)
var
utils
=
require
(
'./utils'
)
var
path
=
require
(
'path'
)
var
webpack
=
require
(
'webpack'
)
var
webpack
=
require
(
'webpack'
)
var
config
=
require
(
'../config'
)
var
config
=
require
(
'../config'
)
var
merge
=
require
(
'webpack-merge'
)
var
merge
=
require
(
'webpack-merge'
)
...
@@ -6,6 +7,10 @@ var baseWebpackConfig = require('./webpack.base.conf')
...
@@ -6,6 +7,10 @@ var baseWebpackConfig = require('./webpack.base.conf')
var
HtmlWebpackPlugin
=
require
(
'html-webpack-plugin'
)
var
HtmlWebpackPlugin
=
require
(
'html-webpack-plugin'
)
var
FriendlyErrorsPlugin
=
require
(
'friendly-errors-webpack-plugin'
)
var
FriendlyErrorsPlugin
=
require
(
'friendly-errors-webpack-plugin'
)
function
resolveApp
(
relativePath
)
{
return
path
.
resolve
(
relativePath
);
}
// add hot-reload related code to entry chunks
// add hot-reload related code to entry chunks
Object
.
keys
(
baseWebpackConfig
.
entry
).
forEach
(
function
(
name
)
{
Object
.
keys
(
baseWebpackConfig
.
entry
).
forEach
(
function
(
name
)
{
baseWebpackConfig
.
entry
[
name
]
=
[
'./build/dev-client'
].
concat
(
baseWebpackConfig
.
entry
[
name
])
baseWebpackConfig
.
entry
[
name
]
=
[
'./build/dev-client'
].
concat
(
baseWebpackConfig
.
entry
[
name
])
...
@@ -28,6 +33,7 @@ module.exports = merge(baseWebpackConfig, {
...
@@ -28,6 +33,7 @@ module.exports = merge(baseWebpackConfig, {
new
HtmlWebpackPlugin
({
new
HtmlWebpackPlugin
({
filename
:
'index.html'
,
filename
:
'index.html'
,
template
:
'index.html'
,
template
:
'index.html'
,
favicon
:
resolveApp
(
'favicon.ico'
),
inject
:
true
inject
:
true
}),
}),
new
FriendlyErrorsPlugin
()
new
FriendlyErrorsPlugin
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment