Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
56b14667
Commit
56b14667
authored
Jun 15, 2017
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hot reloading for .vue files
parent
42aaae99
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
config/webpack.config.js
config/webpack.config.js
+4
-0
No files found.
config/webpack.config.js
View file @
56b14667
...
@@ -249,6 +249,7 @@ if (IS_DEV_SERVER) {
...
@@ -249,6 +249,7 @@ if (IS_DEV_SERVER) {
port
:
DEV_SERVER_PORT
,
port
:
DEV_SERVER_PORT
,
headers
:
{
'
Access-Control-Allow-Origin
'
:
'
*
'
},
headers
:
{
'
Access-Control-Allow-Origin
'
:
'
*
'
},
stats
:
'
errors-only
'
,
stats
:
'
errors-only
'
,
hot
:
DEV_SERVER_LIVERELOAD
,
inline
:
DEV_SERVER_LIVERELOAD
inline
:
DEV_SERVER_LIVERELOAD
};
};
config
.
output
.
publicPath
=
'
//
'
+
DEV_SERVER_HOST
+
'
:
'
+
DEV_SERVER_PORT
+
config
.
output
.
publicPath
;
config
.
output
.
publicPath
=
'
//
'
+
DEV_SERVER_HOST
+
'
:
'
+
DEV_SERVER_PORT
+
config
.
output
.
publicPath
;
...
@@ -256,6 +257,9 @@ if (IS_DEV_SERVER) {
...
@@ -256,6 +257,9 @@ if (IS_DEV_SERVER) {
// watch node_modules for changes if we encounter a missing module compile error
// watch node_modules for changes if we encounter a missing module compile error
new
WatchMissingNodeModulesPlugin
(
path
.
join
(
ROOT_PATH
,
'
node_modules
'
))
new
WatchMissingNodeModulesPlugin
(
path
.
join
(
ROOT_PATH
,
'
node_modules
'
))
);
);
if
(
DEV_SERVER_LIVERELOAD
)
{
config
.
plugins
.
push
(
new
webpack
.
HotModuleReplacementPlugin
());
}
}
}
if
(
WEBPACK_REPORT
)
{
if
(
WEBPACK_REPORT
)
{
...
...
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