refactor: 修改打包history模式的配置文件

main
wu.jian2 2 years ago
parent 4a4282cb71
commit bb1dbe6d83

@ -4,7 +4,7 @@ NODE_ENV = production
ENV = 'history' ENV = 'history'
# VUE_APP_BASE为项目访问路径的前缀 # VUE_APP_BASE为项目访问路径的前缀
VUE_APP_BASE = '/gc-starter-lowcode-ui' VUE_APP_BASE = '/bigScreen'
# VUE_APP_HISTORY为是否开启history模式 # VUE_APP_HISTORY为是否开启history模式
VUE_APP_HISTORY = 'y' VUE_APP_HISTORY = 'y'

@ -2,6 +2,6 @@
ENV = 'production' ENV = 'production'
# base api # base api
VUE_APP_BASE_API = '/chuangDa' VUE_APP_BASE_API = '/bigScreen'
VUE_APP_BUILD_TYPE = 'example' VUE_APP_BUILD_TYPE = 'example'

@ -369,3 +369,4 @@ GitHub.sublime-settings
lib lib
data-room-ui data-room-ui
bigScreen bigScreen
bigScreen.zip

@ -16,7 +16,7 @@ module.exports = {
collectCoverageFrom: ['example/utils/**/*.{js,vue}', '!example/utils/axios.js', 'example/components/**/*.{js,vue}'], collectCoverageFrom: ['example/utils/**/*.{js,vue}', '!example/utils/axios.js', 'example/components/**/*.{js,vue}'],
coverageDirectory: '<rootDir>/tests/unit/coverage', coverageDirectory: '<rootDir>/tests/unit/coverage',
// 'collectCoverage': true, // 'collectCoverage': true,
'coverageReporters': [ coverageReporters: [
'lcov', 'lcov',
'text-summary' 'text-summary'
], ],

@ -3307,6 +3307,27 @@
"whatwg-fetch": "^3.6.2" "whatwg-fetch": "^3.6.2"
}, },
"dependencies": { "dependencies": {
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.10.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.10.1.tgz",
"integrity": "sha512-SaPHK1A01VrNthlix6h1hq4uJu7S/z0kdLUb6klubo738NeQoLbS6V9/d8Pv19tU0XdQKju3D1HSKuI8wJ5wMA==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
}
},
"acorn-walk": { "acorn-walk": {
"version": "8.2.0", "version": "8.2.0",
"resolved": "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.2.0.tgz", "resolved": "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.2.0.tgz",
@ -3378,6 +3399,26 @@
"tapable": "^2.0.0" "tapable": "^2.0.0"
} }
}, },
"json5": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
"integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
"dev": true,
"requires": {
"minimist": "^1.2.0"
}
},
"loader-utils": {
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz",
"integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==",
"dev": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^1.0.1"
}
},
"ms": { "ms": {
"version": "2.1.2", "version": "2.1.2",
"resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz", "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz",
@ -3595,47 +3636,6 @@
"lodash": "^4.17.4" "lodash": "^4.17.4"
} }
}, },
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.10.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.10.1.tgz",
"integrity": "sha512-SaPHK1A01VrNthlix6h1hq4uJu7S/z0kdLUb6klubo738NeQoLbS6V9/d8Pv19tU0XdQKju3D1HSKuI8wJ5wMA==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
},
"json5": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
"integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
"dev": true,
"requires": {
"minimist": "^1.2.0"
}
},
"loader-utils": {
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz",
"integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==",
"dev": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^1.0.1"
}
}
}
},
"@vue/vue2-jest": { "@vue/vue2-jest": {
"version": "27.0.0", "version": "27.0.0",
"resolved": "https://registry.npmmirror.com/@vue/vue2-jest/-/vue2-jest-27.0.0.tgz", "resolved": "https://registry.npmmirror.com/@vue/vue2-jest/-/vue2-jest-27.0.0.tgz",

@ -110,7 +110,7 @@ export default {
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 4px; height: 2px;
background-color: var(--bs-el-color-primary); background-color: var(--bs-el-color-primary);
} }
// background-image: url('./images/tab.png'); // background-image: url('./images/tab.png');

@ -112,7 +112,7 @@ export default {
top: 0; top: 0;
width: 100%; width: 100%;
height: 150px; height: 150px;
background-image: url('~packages/Layout/BigScreenHomeLayout/images/nav_img.png'); background-image: url('./images/nav_img.png');
background-size: 100% 150px; background-size: 100% 150px;
background-color: #0D0F12; background-color: #0D0F12;
background-position: center right; background-position: center right;

@ -9,8 +9,7 @@ const webpack = require('webpack')
function resolve (dir) { function resolve (dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
const publicPath = const publicPath = process.env.VUE_APP_HISTORY === 'y' ? process.env.VUE_APP_BASE + '/' : ''
process.env.VUE_APP_HISTORY === 'y' ? process.env.VUE_APP_BASE + '/' : ''
const JS_CDN = [ const JS_CDN = [
publicPath + 'static/libs/vuex/vuex.min.js', publicPath + 'static/libs/vuex/vuex.min.js',
publicPath + 'static/libs/vue-router/vue-router.min.js' publicPath + 'static/libs/vue-router/vue-router.min.js'
@ -40,8 +39,7 @@ module.exports = {
chunks: 'all' chunks: 'all'
} }
}, },
publicPath: publicPath: process.env.VUE_APP_HISTORY === 'y' ? process.env.VUE_APP_BASE : './',
process.env.VUE_APP_HISTORY === 'y' ? process.env.VUE_APP_BASE : './',
outputDir: 'bigScreen', outputDir: 'bigScreen',
assetsDir: 'static', assetsDir: 'static',
lintOnSave: false, lintOnSave: false,

Loading…
Cancel
Save