forked from AkkomaGang/admin-fe
refactor:update package.json
This commit is contained in:
parent
d56831679e
commit
3666148ddc
4 changed files with 58 additions and 49 deletions
7
.babelrc
7
.babelrc
|
@ -1,6 +1,11 @@
|
||||||
{
|
{
|
||||||
"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"],
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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, {
|
||||||
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({
|
||||||
|
|
82
package.json
82
package.json
|
@ -13,80 +13,80 @@
|
||||||
"lint": "eslint --ext .js,.vue src"
|
"lint": "eslint --ext .js,.vue src"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "0.16.2",
|
"axios": "0.17.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.10.8"
|
"xlsx": "^0.11.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "7.1.1",
|
"autoprefixer": "7.1.6",
|
||||||
"babel-core": "6.25.0",
|
"babel-core": "6.26.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.24.1",
|
"babel-register": "6.26.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.15.3",
|
"express": "4.16.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.17.0",
|
"style-loader": "0.19.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.10.2",
|
"webpack-dev-middleware": "1.12.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": {
|
||||||
|
|
Loading…
Reference in a new issue