mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-06-23 18:40:25 +08:00
提交 all-in-one 前端本地适配
This commit is contained in:
@@ -13,6 +13,7 @@ const resolve = dir => {
|
||||
*/
|
||||
const enableProduction = process.env.NODE_ENV === "production"; // 是否生产环境
|
||||
// const enableProduction = false // 统一取消cdn加载 目前cdn链接的https请求挂了
|
||||
const publicPath = process.env.VUE_APP_PUBLIC_PATH || "/";
|
||||
|
||||
let externals = {
|
||||
vue: "Vue",
|
||||
@@ -65,6 +66,7 @@ externals = enableProduction && configs.enableCDN ? externals : {};
|
||||
jsPlugin = enableProduction ? jsPlugin : [];
|
||||
|
||||
module.exports = {
|
||||
publicPath,
|
||||
// 输出文件目录,当运行 vue-cli-service build 时生成的生产环境构建文件的目录。注意目标目录在构建之前会被清除
|
||||
outputDir:'dist',
|
||||
// 放置生成的静态资源 (js、css、img、fonts) 的目录。
|
||||
|
||||
Reference in New Issue
Block a user