Skip to content

Commit 6d943ac

Browse files
authored
Merge branch 'develop' into feature/webpack-dev-server(#964)
2 parents 505446d + cf408f2 commit 6d943ac

File tree

8 files changed

+23
-16
lines changed

8 files changed

+23
-16
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules
22
.DS_Store
33
docs/_book
4-
test/
4+
test/

meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = {
5454
"message": "Pick an ESLint preset",
5555
"choices": [
5656
{
57-
"name": "Standard (https://github.com/feross/standard)",
57+
"name": "Standard (https://github.com/standard/standard)",
5858
"value": "standard",
5959
"short": "Standard"
6060
},

template/.eslintignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
build/*.js
2-
config/*.js
1+
/build/
2+
/config/
3+
/dist/
4+
/*.js
5+
{{#unit}}
6+
/test/unit/coverage/
7+
{{/unit}}

template/.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
.DS_Store
22
node_modules/
3-
dist/
3+
/dist/
44
npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
77
{{#unit}}
8-
test/unit/coverage
8+
/test/unit/coverage/
99
{{/unit}}
1010
{{#e2e}}
11-
test/e2e/reports
11+
/test/e2e/reports/
1212
selenium-debug.log
1313
{{/e2e}}
1414

template/build/webpack.prod.conf.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ const webpackConfig = merge(baseWebpackConfig, {
3737
compress: {
3838
warnings: false
3939
},
40-
sourceMap: true
40+
sourceMap: true,
41+
parallel: true
4142
}),
4243
// extract css into its own file
4344
new ExtractTextPlugin({
@@ -46,9 +47,9 @@ const webpackConfig = merge(baseWebpackConfig, {
4647
// Compress extracted CSS. We are using this plugin so that possible
4748
// duplicated CSS from different components can be deduped.
4849
new OptimizeCSSPlugin({
49-
cssProcessorOptions: {
50-
safe: true
51-
}
50+
cssProcessorOptions: config.build.productionSourceMap
51+
? { safe: true, map: { inline: false } }
52+
: { safe: true }
5253
}),
5354
// generate dist index.html with correct asset hash for caching.
5455
// you can customize output by editing /index.html

template/config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict'
2-
// Template version: 1.1.1
2+
// Template version: 1.1.3
33
// see http://vuejs-templates.github.io/webpack for documentation.
44

55
const path = require('path')

template/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
56
<title>{{ name }}</title>
67
</head>
78
<body>

template/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"lint": "eslint --ext .js,.vue src{{#unit}} test/unit/specs{{/unit}}{{#e2e}} test/e2e/specs{{/e2e}}"{{/lint}}
1515
},
1616
"dependencies": {
17-
"vue": "^2.4.2"{{#router}},
18-
"vue-router": "^2.7.0"{{/router}}
17+
"vue": "^2.5.2"{{#router}},
18+
"vue-router": "^3.0.1"{{/router}}
1919
},
2020
"devDependencies": {
2121
"autoprefixer": "^7.1.2",
@@ -87,9 +87,9 @@
8787
"ora": "^1.2.0",
8888
"rimraf": "^2.6.0",
8989
"url-loader": "^0.5.8",
90-
"vue-loader": "^13.0.4",
90+
"vue-loader": "^13.3.0",
9191
"vue-style-loader": "^3.0.1",
92-
"vue-template-compiler": "^2.4.2",
92+
"vue-template-compiler": "^2.5.2",
9393
"portfinder": "^1.0.13",
9494
"webpack": "^3.6.0",
9595
"webpack-dev-server": "^2.9.1",

0 commit comments

Comments
 (0)