修改代码
This commit is contained in:
parent
e9dbd6ef31
commit
71ca6e2cc4
@ -22,7 +22,6 @@
|
||||
"js-md5": "^0.7.3",
|
||||
"lodash": "^4.17.11",
|
||||
"normalize.css": "7.0.0",
|
||||
"nprogress": "0.2.0",
|
||||
"path-to-regexp": "2.4.0",
|
||||
"qrcode.vue": "^1.6.2",
|
||||
"script-loader": "^0.7.2",
|
||||
|
@ -6,7 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.png">
|
||||
<!-- <link rel="stylesheet" href="https://cdn.bootcss.com/element-ui/2.12.0/theme-chalk/index.css"> -->
|
||||
<!-- <link href="https://cdn.bootcss.com/nprogress/0.2.0/nprogress.min.css" rel="stylesheet"> -->
|
||||
<link href="https://cdn.bootcss.com/nprogress/0.2.0/nprogress.min.css" rel="stylesheet">
|
||||
<title><%= webpackConfig.name %></title>
|
||||
<script src="/static/inflate.min.js"></script>
|
||||
<script src="/static/three.min.js"></script>
|
||||
@ -15,7 +15,7 @@
|
||||
<script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script>
|
||||
<script src="https://cdn.bootcss.com/vuex/3.1.1/vuex.min.js"></script>
|
||||
<script src="https://cdn.bootcss.com/vue-router/3.1.3/vue-router.min.js"></script>
|
||||
<!-- <script src="https://cdn.bootcss.com/nprogress/0.2.0/nprogress.min.js"></script> -->
|
||||
<script src="https://cdn.bootcss.com/nprogress/0.2.0/nprogress.min.js"></script>
|
||||
|
||||
<!-- <script src="https://cdn.bootcss.com/element-ui/2.12.0/index.js"></script>
|
||||
<script src="https://cdn.bootcss.com/element-ui/2.12.0/locale/en.min.js"></script>
|
||||
|
@ -2,7 +2,7 @@ import Vue from 'vue';
|
||||
import store from '@/store';
|
||||
import router from './router';
|
||||
import NProgress from 'nprogress'; // Progress 进度条
|
||||
import 'nprogress/nprogress.css';// Progress 进度条样式
|
||||
// import 'nprogress/nprogress.css';// Progress 进度条样式
|
||||
import { admin, userDesign} from './router';
|
||||
import { getToken, getDesignToken} from '@/utils/auth'; // 验权
|
||||
import { LoginParams } from '@/utils/login';
|
||||
|
@ -80,40 +80,11 @@ module.exports = {
|
||||
'vue': 'Vue',
|
||||
'vuex': 'Vuex',
|
||||
'vue-router': 'VueRouter',
|
||||
// 'nprogress': 'NProgress',
|
||||
'nprogress': 'NProgress',
|
||||
'echarts': 'echarts'
|
||||
};
|
||||
|
||||
},
|
||||
// {
|
||||
// // provide the app's title in webpack's name field, so that
|
||||
// // it can be accessed in index.html to inject the correct title.
|
||||
// name: name,
|
||||
// resolve: {
|
||||
// extensions: ['.js', '.vue', '.json'],
|
||||
// alias: {
|
||||
// '@': resolve('src')
|
||||
// }
|
||||
// },
|
||||
// plugins: [
|
||||
// new CopyWebpackPlugin([
|
||||
// {
|
||||
// from: path.resolve(__dirname, './static'),
|
||||
// to: 'static',
|
||||
// ignore: ['.*']
|
||||
// }
|
||||
// ]),
|
||||
// new CompressionWebpackPlugin({
|
||||
// algorithm: 'gzip',
|
||||
// test: new RegExp('\\.(' + productionGzipExtensions.join('|') + ')$'),
|
||||
// threshold: 10240,
|
||||
// minRatio: 0.8
|
||||
// })
|
||||
// ],
|
||||
// externals: {
|
||||
// 'echarts': 'echarts' // 配置使用CDN
|
||||
// }
|
||||
// },
|
||||
chainWebpack(config) {
|
||||
config.plugins.delete('preload'); // TODO: need test
|
||||
config.plugins.delete('prefetch'); // TODO: need test
|
||||
@ -184,6 +155,27 @@ module.exports = {
|
||||
minChunks: 3, // minimum common number
|
||||
priority: 5,
|
||||
reuseExistingChunk: true
|
||||
},
|
||||
jmap: {
|
||||
name: 'chunk-jmap',
|
||||
test: resolve('src/jmap'), // can customize your rules
|
||||
minChunks: 3, // minimum common number
|
||||
priority: 5,
|
||||
reuseExistingChunk: true
|
||||
},
|
||||
jlmap3d: {
|
||||
name: 'chunk-jlmap3d',
|
||||
test: resolve('src/jlmap3d'), // can customize your rules
|
||||
minChunks: 3, // minimum common number
|
||||
priority: 5,
|
||||
reuseExistingChunk: true
|
||||
},
|
||||
ibp: {
|
||||
name: 'chunk-ibp',
|
||||
test: resolve('src/ibp'), // can customize your rules
|
||||
minChunks: 3, // minimum common number
|
||||
priority: 5,
|
||||
reuseExistingChunk: true
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user