Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
黄瑜
VueElementTemplate
Commits
3666148d
Commit
3666148d
authored
Oct 31, 2017
by
Pan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor:update package.json
parent
d5683167
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
49 deletions
+58
-49
.babelrc
.babelrc
+6
-1
dev-server.js
build/dev-server.js
+8
-6
webpack.prod.conf.js
build/webpack.prod.conf.js
+3
-1
package.json
package.json
+41
-41
No files found.
.babelrc
View file @
3666148d
{
{
"presets": [
"presets": [
["env", { "modules": false }],
["env", {
"modules": false,
"targets": {
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
}
}],
"stage-2"
"stage-2"
],
],
"plugins": ["transform-runtime"],
"plugins": ["transform-runtime"],
...
...
build/dev-server.js
View file @
3666148d
...
@@ -34,12 +34,14 @@ var hotMiddleware = require('webpack-hot-middleware')(compiler, {
...
@@ -34,12 +34,14 @@ var hotMiddleware = require('webpack-hot-middleware')(compiler, {
});
});
// force page reload when html-webpack-plugin template changes
// force page reload when html-webpack-plugin template changes
compiler
.
plugin
(
'compilation'
,
function
(
compilation
)
{
// currently disabled until this is resolved:
compilation
.
plugin
(
'html-webpack-plugin-after-emit'
,
function
(
data
,
cb
)
{
// https://github.com/jantimon/html-webpack-plugin/issues/680
hotMiddleware
.
publish
({
action
:
'reload'
});
// compiler.plugin('compilation', function (compilation) {
cb
()
// compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
})
// hotMiddleware.publish({ action: 'reload' })
});
// cb()
// })
// })
// proxy api requests
// proxy api requests
Object
.
keys
(
proxyTable
).
forEach
(
function
(
context
)
{
Object
.
keys
(
proxyTable
).
forEach
(
function
(
context
)
{
...
...
build/webpack.prod.conf.js
View file @
3666148d
...
@@ -30,6 +30,7 @@ var webpackConfig = merge(baseWebpackConfig, {
...
@@ -30,6 +30,7 @@ var webpackConfig = merge(baseWebpackConfig, {
publicPath
:
config
.
build
.
assetsPublicPath
publicPath
:
config
.
build
.
assetsPublicPath
},
},
plugins
:
[
plugins
:
[
new
webpack
.
optimize
.
ModuleConcatenationPlugin
(),
// http://vuejs.github.io/vue-loader/en/workflow/production.html
// http://vuejs.github.io/vue-loader/en/workflow/production.html
new
webpack
.
DefinePlugin
({
new
webpack
.
DefinePlugin
({
'process.env'
:
env
'process.env'
:
env
...
@@ -38,7 +39,8 @@ var webpackConfig = merge(baseWebpackConfig, {
...
@@ -38,7 +39,8 @@ var webpackConfig = merge(baseWebpackConfig, {
compress
:
{
compress
:
{
warnings
:
false
warnings
:
false
},
},
sourceMap
:
true
sourceMap
:
true
,
parallel
:
true
}),
}),
// extract css into its own file
// extract css into its own file
new
ExtractTextPlugin
({
new
ExtractTextPlugin
({
...
...
package.json
View file @
3666148d
...
@@ -13,80 +13,80 @@
...
@@ -13,80 +13,80 @@
"lint"
:
"eslint --ext .js,.vue src"
"lint"
:
"eslint --ext .js,.vue src"
},
},
"dependencies"
:
{
"dependencies"
:
{
"
axios
"
:
"
0.1
6.2
"
,
"
axios
"
:
"
0.1
7.0
"
,
"
clipboard
"
:
"
1.7.1
"
,
"
clipboard
"
:
"
1.7.1
"
,
"
codemirror
"
:
"
5.
26
.0
"
,
"
codemirror
"
:
"
5.
31
.0
"
,
"
dropzone
"
:
"
5.
1
.0
"
,
"
dropzone
"
:
"
5.
2
.0
"
,
"
echarts
"
:
"
3.7.2
"
,
"
echarts
"
:
"
3.7.2
"
,
"
element-ui
"
:
"
1.4.2
"
,
"
element-ui
"
:
"
1.4.2
"
,
"
file-saver
"
:
"
1.3.3
"
,
"
file-saver
"
:
"
1.3.3
"
,
"
font-awesome
"
:
"
^
4.7.0
"
,
"
font-awesome
"
:
"
4.7.0
"
,
"
js-cookie
"
:
"
2.
1.4
"
,
"
js-cookie
"
:
"
2.
2.0
"
,
"
jsonlint
"
:
"
1.6.2
"
,
"
jsonlint
"
:
"
1.6.2
"
,
"
jszip
"
:
"
^
3.1.4
"
,
"
jszip
"
:
"
3.1.4
"
,
"
mockjs
"
:
"
1.0.1-beta3
"
,
"
mockjs
"
:
"
1.0.1-beta3
"
,
"
normalize.css
"
:
"
7.0.0
"
,
"
normalize.css
"
:
"
7.0.0
"
,
"
nprogress
"
:
"
0.2.0
"
,
"
nprogress
"
:
"
0.2.0
"
,
"
screenfull
"
:
"
3.
2
.2
"
,
"
screenfull
"
:
"
3.
3
.2
"
,
"
showdown
"
:
"
1.
7.1
"
,
"
showdown
"
:
"
1.
8.0
"
,
"
simplemde
"
:
"
1.11.2
"
,
"
simplemde
"
:
"
1.11.2
"
,
"
sortablejs
"
:
"
1.
5
.1
"
,
"
sortablejs
"
:
"
1.
6
.1
"
,
"
vue
"
:
"
2.4.2
"
,
"
vue
"
:
"
2.4.2
"
,
"
vue-count-to
"
:
"
1.0.5
"
,
"
vue-count-to
"
:
"
1.0.5
"
,
"
vue-multiselect
"
:
"
2.0.
2
"
,
"
vue-multiselect
"
:
"
2.0.
6
"
,
"
vue-router
"
:
"
2.7.0
"
,
"
vue-router
"
:
"
2.7.0
"
,
"
vue-splitpane
"
:
"
^
1.0.0
"
,
"
vue-splitpane
"
:
"
1.0.0
"
,
"
vuedraggable
"
:
"
2.14.1
"
,
"
vuedraggable
"
:
"
2.14.1
"
,
"
vuex
"
:
"
2.3.1
"
,
"
vuex
"
:
"
2.3.1
"
,
"
xlsx
"
:
"
^0.1
0.8
"
"
xlsx
"
:
"
^0.1
1.7
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"
autoprefixer
"
:
"
7.1.
1
"
,
"
autoprefixer
"
:
"
7.1.
6
"
,
"
babel-core
"
:
"
6.2
5
.0
"
,
"
babel-core
"
:
"
6.2
6
.0
"
,
"
babel-eslint
"
:
"
7.2.3
"
,
"
babel-eslint
"
:
"
8.0.1
"
,
"
babel-loader
"
:
"
7.
0.0
"
,
"
babel-loader
"
:
"
7.
1.2
"
,
"
babel-plugin-transform-runtime
"
:
"
6.23.0
"
,
"
babel-plugin-transform-runtime
"
:
"
6.23.0
"
,
"
babel-preset-env
"
:
"
1.
5.2
"
,
"
babel-preset-env
"
:
"
1.
6.1
"
,
"
babel-preset-stage-2
"
:
"
6.24.1
"
,
"
babel-preset-stage-2
"
:
"
6.24.1
"
,
"
babel-register
"
:
"
6.2
4.1
"
,
"
babel-register
"
:
"
6.2
6.0
"
,
"
chalk
"
:
"
1.1.3
"
,
"
chalk
"
:
"
2.3.0
"
,
"
connect-history-api-fallback
"
:
"
1.
3
.0
"
,
"
connect-history-api-fallback
"
:
"
1.
4
.0
"
,
"
copy-webpack-plugin
"
:
"
4.
0.1
"
,
"
copy-webpack-plugin
"
:
"
4.
2.0
"
,
"
cross-env
"
:
"
5.
0
.1
"
,
"
cross-env
"
:
"
5.
1
.1
"
,
"
css-loader
"
:
"
0.28.
4
"
,
"
css-loader
"
:
"
0.28.
7
"
,
"
eslint
"
:
"
3.19
.0
"
,
"
eslint
"
:
"
4.10
.0
"
,
"
eslint-friendly-formatter
"
:
"
3.0.0
"
,
"
eslint-friendly-formatter
"
:
"
3.0.0
"
,
"
eslint-import-resolver-webpack
"
:
"
0.8.
1
"
,
"
eslint-import-resolver-webpack
"
:
"
0.8.
3
"
,
"
eslint-loader
"
:
"
1.
7.1
"
,
"
eslint-loader
"
:
"
1.
9.0
"
,
"
eslint-plugin-html
"
:
"
3.
0.0
"
,
"
eslint-plugin-html
"
:
"
3.
2.2
"
,
"
eslint-plugin-import
"
:
"
2.
3
.0
"
,
"
eslint-plugin-import
"
:
"
2.
8
.0
"
,
"
eventsource-polyfill
"
:
"
0.9.6
"
,
"
eventsource-polyfill
"
:
"
0.9.6
"
,
"
express
"
:
"
4.1
5.3
"
,
"
express
"
:
"
4.1
6.2
"
,
"
extract-text-webpack-plugin
"
:
"
2.1
.2
"
,
"
extract-text-webpack-plugin
"
:
"
3.0
.2
"
,
"
file-loader
"
:
"
0.11.2
"
,
"
file-loader
"
:
"
0.11.2
"
,
"
friendly-errors-webpack-plugin
"
:
"
1.6.1
"
,
"
friendly-errors-webpack-plugin
"
:
"
1.6.1
"
,
"
function-bind
"
:
"
1.1.0
"
,
"
function-bind
"
:
"
1.1.0
"
,
"
html-webpack-plugin
"
:
"
2.
28
.0
"
,
"
html-webpack-plugin
"
:
"
2.
30
.0
"
,
"
http-proxy-middleware
"
:
"
0.17.4
"
,
"
http-proxy-middleware
"
:
"
0.17.4
"
,
"
node-sass
"
:
"
^4.5.0
"
,
"
node-sass
"
:
"
^4.5.0
"
,
"
opn
"
:
"
4.0.2
"
,
"
opn
"
:
"
4.0.2
"
,
"
optimize-css-assets-webpack-plugin
"
:
"
1.3
.0
"
,
"
optimize-css-assets-webpack-plugin
"
:
"
3.2
.0
"
,
"
ora
"
:
"
1.1.0
"
,
"
ora
"
:
"
1.1.0
"
,
"
pushstate-server
"
:
"
2.1.0
"
,
"
pushstate-server
"
:
"
2.1.0
"
,
"
rimraf
"
:
"
2.6.0
"
,
"
rimraf
"
:
"
2.6.0
"
,
"
sass-loader
"
:
"
6.0.
5
"
,
"
sass-loader
"
:
"
6.0.
6
"
,
"
script-loader
"
:
"
0.7.
0
"
,
"
script-loader
"
:
"
0.7.
2
"
,
"
semver
"
:
"
5.3.0
"
,
"
semver
"
:
"
5.3.0
"
,
"
style-loader
"
:
"
0.1
7
.0
"
,
"
style-loader
"
:
"
0.1
9
.0
"
,
"
svg-sprite-loader
"
:
"
3.2.4
"
,
"
svg-sprite-loader
"
:
"
3.2.4
"
,
"
url-loader
"
:
"
0.
5.8
"
,
"
url-loader
"
:
"
0.
6.2
"
,
"
vue-loader
"
:
"
13.0.4
"
,
"
vue-loader
"
:
"
13.0.4
"
,
"
vue-style-loader
"
:
"
3.0.
1
"
,
"
vue-style-loader
"
:
"
3.0.
3
"
,
"
vue-template-compiler
"
:
"
2.4.2
"
,
"
vue-template-compiler
"
:
"
2.4.2
"
,
"
webpack
"
:
"
2.6
.1
"
,
"
webpack
"
:
"
3.8
.1
"
,
"
webpack-bundle-analyzer
"
:
"
2.
8.2
"
,
"
webpack-bundle-analyzer
"
:
"
2.
9.0
"
,
"
webpack-dev-middleware
"
:
"
1.1
0.2
"
,
"
webpack-dev-middleware
"
:
"
1.1
2.0
"
,
"
webpack-hot-middleware
"
:
"
2.
18
.0
"
,
"
webpack-hot-middleware
"
:
"
2.
20
.0
"
,
"
webpack-merge
"
:
"
4.1.0
"
"
webpack-merge
"
:
"
4.1.0
"
},
},
"engines"
:
{
"engines"
:
{
...
...
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