Browse Source

修改打包后的静态目录

preview
wxz 3 years ago
parent
commit
a621fbf85c
  1. 4
      epmet-oper-web/vue.config.js

4
epmet-oper-web/vue.config.js

@ -3,7 +3,7 @@
*/
const IS_PROD = ['production', 'test'].includes(process.env.NODE_ENV)
module.exports = {
baseUrl: process.env.NODE_ENV === 'production' ? '' : '/epmet-oper',
baseUrl: process.env.NODE_ENV === 'production' ? '' : '/epmet-oper-pc',
css: {
// 是否使用css分离插件 ExtractTextPlugin
extract: IS_PROD,
@ -23,7 +23,7 @@ module.exports = {
.loader('svg-sprite-loader')
},
productionSourceMap: false,
outputDir: 'epmet-oper',
outputDir: 'epmet-oper-pc',
assetsDir: 'static',
devServer: {
open: true,

Loading…
Cancel
Save