Commit beaf62d3 authored by xhx's avatar xhx

fix:项目名称调整

parent b06035a8
NODE_ENV="production" NODE_ENV="production"
VUE_APP_URL="http://47.243.139.223:8000" VUE_APP_URL="http://47.243.139.223:8000"
APP_TITLE="后台系统"
\ No newline at end of file
NODE_ENV='development' NODE_ENV='development'
#VUE_APP_URL="http://172.16.100.59:8090" #VUE_APP_URL="http://172.16.100.59:8090"
VUE_APP_URL="http://172.16.100.59:8092" VUE_APP_URL="http://172.16.100.59:8092"
APP_TITLE="后台系统"
\ No newline at end of file
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
"node-sass": "^4.12.0", "node-sass": "^4.12.0",
"sass-loader": "^8.0.2", "sass-loader": "^8.0.2",
"typescript": "~4.1.5", "typescript": "~4.1.5",
"vue-template-compiler": "^2.6.11" "vue-template-compiler": "^2.6.11",
"compression-webpack-plugin": "^6.1.1",
"terser-webpack-plugin": "^4.2.3"
} }
} }
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<script lang="ts"> <script lang="ts">
import Vue from 'vue' import Vue from 'vue'
import { getStorage } from './utils/storage' // import { getStorage } from './utils/storage'
export default Vue.extend({ export default Vue.extend({
}) })
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<script lang="ts"> <script lang="ts">
import Vue from 'vue' import Vue from 'vue'
import { getStorage, removeStorage } from '@/utils/storage' import { getStorage, removeStorage } from '@/utils/storage'
import { logout } from '@/service/request' // import { logout } from '@/service/request'
export default Vue.extend({ export default Vue.extend({
data() { data() {
return { return {
......
// const TerserPlugin = require('terser-webpack-plugin') const TerserPlugin = require('terser-webpack-plugin')
// const CompressionWebpackPlugin = require('compression-webpack-plugin') const CompressionWebpackPlugin = require('compression-webpack-plugin')
module.exports = { module.exports = {
// ...other vue-cli plugin options... // ...other vue-cli plugin options...
...@@ -9,7 +9,7 @@ module.exports = { ...@@ -9,7 +9,7 @@ module.exports = {
less: { less: {
javascriptEnabled: true, // 加载LESS 需要把JS设置一下 javascriptEnabled: true, // 加载LESS 需要把JS设置一下
} }
} },
}, },
devServer: { devServer: {
proxy: { // 设置代理 proxy: { // 设置代理
...@@ -39,18 +39,27 @@ module.exports = { ...@@ -39,18 +39,27 @@ module.exports = {
// } // }
// }) // })
// ] // ]
// }, // }
// config.plugins = [ // config.plugins = [
// new CompressionWebpackPlugin({ // new CompressionWebpackPlugin({
// filename: '[path][name].gz[query]', // filename: '[path][name].gz[query]',
// algorithm: 'gzip', // algorithm: 'gzip',
// test: /\.(js|css|json|ttf)(\?.*)?$/i, // // test: /\.(js|css|json|ttf)(\?.*)?$/i,
// threshold: 0, // threshold: 0,
// minRatio: 0.8, // minRatio: 0.8,
// }) // })
// ] // ]
// } // }
// } // },
chainWebpack: config => {
// config.devtool ='source-map';
config
.plugin('html')
.tap(args => {
args[0].title= process.env.APP_TITLE
return args
})
}
// pwa: { // pwa: {
// name: 'My App', // name: 'My App',
// themeColor: '#4DBA87', // themeColor: '#4DBA87',
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment