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
06f72f5c
Commit
06f72f5c
authored
Nov 13, 2016
by
Evan You
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak build
parent
636edadf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
+2
-10
webpack.base.config.js
build/webpack.base.config.js
+2
-4
webpack.client.config.js
build/webpack.client.config.js
+0
-5
index.html
index.html
+0
-1
No files found.
build/webpack.base.config.js
View file @
06f72f5c
...
@@ -3,16 +3,14 @@ const vueConfig = require('./vue-loader.config')
...
@@ -3,16 +3,14 @@ const vueConfig = require('./vue-loader.config')
module
.
exports
=
{
module
.
exports
=
{
devtool
:
'#source-map'
,
devtool
:
'#source-map'
,
entry
:
{
entry
:
'./src/client-entry.js'
,
app
:
'./src/client-entry.js'
,
vendor
:
[
'vue'
,
'vue-router'
,
'vuex'
,
'firebase'
,
'lru-cache'
,
'es6-promise'
]
},
output
:
{
output
:
{
path
:
path
.
resolve
(
__dirname
,
'../dist'
),
path
:
path
.
resolve
(
__dirname
,
'../dist'
),
publicPath
:
'/dist/'
,
publicPath
:
'/dist/'
,
filename
:
'client-bundle.js'
filename
:
'client-bundle.js'
},
},
module
:
{
module
:
{
noParse
:
/
(
lru-cache|es6-promise
)\.
js$/
,
rules
:
[
rules
:
[
{
{
test
:
/
\.
vue$/
,
test
:
/
\.
vue$/
,
...
...
build/webpack.client.config.js
View file @
06f72f5c
...
@@ -7,11 +7,6 @@ const config = Object.assign({}, base, {
...
@@ -7,11 +7,6 @@ const config = Object.assign({}, base, {
// strip comments in Vue code
// strip comments in Vue code
new
webpack
.
DefinePlugin
({
new
webpack
.
DefinePlugin
({
'process.env.NODE_ENV'
:
JSON
.
stringify
(
process
.
env
.
NODE_ENV
||
'development'
)
'process.env.NODE_ENV'
:
JSON
.
stringify
(
process
.
env
.
NODE_ENV
||
'development'
)
}),
// extract vendor chunks for better caching
new
webpack
.
optimize
.
CommonsChunkPlugin
({
name
:
'vendor'
,
filename
:
'client-vendor-bundle.js'
})
})
])
])
})
})
...
...
index.html
View file @
06f72f5c
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
</head>
</head>
<body>
<body>
{{ APP }}
{{ APP }}
<script
src=
"/dist/client-vendor-bundle.js"
></script>
<script
src=
"/dist/client-bundle.js"
></script>
<script
src=
"/dist/client-bundle.js"
></script>
</body>
</body>
</html>
</html>
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