打包压缩
Showing
3 changed files
with
2 additions
and
2 deletions
1 | NODE_ENV = 'sandbox' | 1 | NODE_ENV = 'production' |
2 | VUE_APP_TITLE = 'sandbox' | 2 | VUE_APP_TITLE = 'sandbox' |
3 | VUE_APP_BASE_URL= 'https://30.76.147.155' | 3 | VUE_APP_BASE_URL= 'https://30.76.147.155' |
4 | VUE_APP_RSA_PUBLIC_KEY = 'B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95' | 4 | VUE_APP_RSA_PUBLIC_KEY = 'B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95' | ... | ... |
... | @@ -21,7 +21,7 @@ if (process.env.NODE_ENV === 'development') { | ... | @@ -21,7 +21,7 @@ if (process.env.NODE_ENV === 'development') { |
21 | // seo插件 | 21 | // seo插件 |
22 | plugins.push( | 22 | plugins.push( |
23 | new PrerenderSPAPlugin({ | 23 | new PrerenderSPAPlugin({ |
24 | staticDir: path.join(__dirname, webpack_public_path == "" || 'dist'), // 如果没配置环境目录(生产),则写到目录dist | 24 | staticDir: path.join(__dirname, webpack_public_path || 'dist'), // 如果没配置环境目录(生产),则写到目录dist |
25 | routes: ['/', '/demo', '/about'], // 需要seo的目录 临时占位,后期再进行配置 | 25 | routes: ['/', '/demo', '/about'], // 需要seo的目录 临时占位,后期再进行配置 |
26 | renderer: new Renderer({ | 26 | renderer: new Renderer({ |
27 | inject: { | 27 | inject: { | ... | ... |
-
Please register or sign in to post a comment