Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sample
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
周韬
node-sample
Commits
7d926ead
Commit
7d926ead
authored
Nov 14, 2016
by
Evan You
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid hardcoded path in setup-dev-server.js
parent
4a4702c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
setup-dev-server.js
build/setup-dev-server.js
+2
-2
index.template.html
src/index.template.html
+1
-1
No files found.
build/setup-dev-server.js
View file @
7d926ead
...
...
@@ -24,8 +24,8 @@ module.exports = function setupDevServer (app, opts) {
})
app
.
use
(
devMiddleware
)
clientCompiler
.
plugin
(
'done'
,
()
=>
{
const
file
name
=
devMiddleware
.
getFilenameFromUrl
(
'/dist/
index.html'
)
const
index
=
devMiddleware
.
fileSystem
.
readFileSync
(
file
name
,
'utf-8'
)
const
file
Path
=
path
.
join
(
clientConfig
.
output
.
path
,
'
index.html'
)
const
index
=
devMiddleware
.
fileSystem
.
readFileSync
(
file
Path
,
'utf-8'
)
opts
.
indexUpdated
(
index
)
})
...
...
src/index.template.html
View file @
7d926ead
...
...
@@ -2,7 +2,7 @@
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<title>
vue-hackernews-
2.0
</title>
<title>
Vue HN
2.0
</title>
<meta
name=
"mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"
>
<link
rel=
"shortcut icon"
sizes=
"48x48"
href=
"/logo.png"
>
...
...
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