4cfd50c5 by simon

打包压缩

1 parent eb9b1d9f
NODE_ENV = 'sandbox'
NODE_ENV = 'production'
VUE_APP_TITLE = 'sandbox'
VUE_APP_BASE_URL= 'https://30.76.147.155'
VUE_APP_RSA_PUBLIC_KEY = 'B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95'
......
......@@ -21,7 +21,7 @@ if (process.env.NODE_ENV === 'development') {
// seo插件
plugins.push(
new PrerenderSPAPlugin({
staticDir: path.join(__dirname, webpack_public_path == "" || 'dist'), // 如果没配置环境目录(生产),则写到目录dist
staticDir: path.join(__dirname, webpack_public_path || 'dist'), // 如果没配置环境目录(生产),则写到目录dist
routes: ['/', '/demo', '/about'], // 需要seo的目录 临时占位,后期再进行配置
renderer: new Renderer({
inject: {
......