4 Star 0 Fork 0

天安项目/tian_ps

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.ts.timestamp-1717671806657-f9f63270ffcd4.mjs 23.47 KB
一键复制 编辑 原始数据 按行查看 历史
李建兴 提交于 2024-09-06 17:23 . 更新车辆,图标,感知数据
// vite.config.ts
import { loadEnv } from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite@4.5.3_@types+node@18.19.31_less@4.2.0_terser@5.30.3/node_modules/vite/dist/node/index.js";
import { resolve } from "path";
import WindiCSS from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-windicss@1.9.3_vite@4.5.3/node_modules/vite-plugin-windicss/dist/index.mjs";
import vue from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/@vitejs+plugin-vue@4.6.2_vite@4.5.3_vue@3.4.22/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/@vitejs+plugin-vue-jsx@1.3.10/node_modules/@vitejs/plugin-vue-jsx/index.js";
import { createSvgIconsPlugin } from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/file+sutpc-pak+vite-plugin-sutpc-svg-icons-1.0.8.tgz_vite@4.5.3/node_modules/vite-plugin-sutpc-svg-icons/index.js";
import vitePluginSutpcLibStaticImport from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/file+sutpc-pak+vite-plugin-sutpc-lib-static-import-1.0.17.tgz_rollup@2.79.1/node_modules/vite-plugin-sutpc-lib-static-import/index.js";
import vitePluginSutpcLessDeep from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/file+sutpc-pak+vite-plugin-sutpc-less-deep-1.0.5.tgz/node_modules/vite-plugin-sutpc-less-deep/index.js";
import vitePluginPurgeIcons from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-purge-icons@0.9.2_vite@4.5.3/node_modules/vite-plugin-purge-icons/dist/index.mjs";
import vitePluginSutpcIconPark from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/file+sutpc-pak+vite-plugin-sutpc-icon-park-1.0.5.tgz_vue@3.4.22/node_modules/vite-plugin-sutpc-icon-park/index.js";
import vitePluginSutpcCommon from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/file+sutpc-pak+vite-plugin-sutpc-common-1.2.4.tgz/node_modules/vite-plugin-sutpc-common/index.js";
// vite-plugin-sutpc-public-path.ts
function vite_plugin_sutpc_public_path_default(path) {
let base = "";
return {
configResolved(config) {
base = config.base;
},
transform(code, id) {
const isDev = process.env.VITE_USER_NODE_ENV === "development";
const replacer = isDev ? "/" : path || base;
return code.replace(/\[publicPath\]/g, replacer);
},
enforce: "pre"
};
}
// vite.config.ts
import viteCompression from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-compression@0.5.1_vite@4.5.3/node_modules/vite-plugin-compression/dist/index.mjs";
import { ViteEjsPlugin } from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-ejs@1.7.0_vite@4.5.3/node_modules/vite-plugin-ejs/index.js";
import externalGlobals from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/rollup-plugin-external-globals@0.6.1_rollup@2.79.1/node_modules/rollup-plugin-external-globals/index.js";
var root = process.cwd();
var pathResolve = (dir) => resolve(root, ".", dir);
var vite_config_default = ({ command, mode }) => {
const isBuild = command === "build";
const argMode = process.argv[3] === "--mode" ? process.argv[4] : process.argv[3];
const configDir = pathResolve("config");
const env = loadEnv(isBuild ? mode : argMode, configDir);
const publicPath = env.VITE_APP_MODE === "LIB" ? `/bizapp/${env.VITE_APP_KEY}/front/` : "/";
// const publicPath = `/bizapp/${import.meta.env.VITE_APP_KEY}/front`;
const buildOptions = env.VITE_APP_MODE === "LIB" ? {
// 库模式定制
outDir: env.VITE_OUT_DIR + "/" + env.VITE_APP_KEY,
lib: {
entry: resolve("src/lib.ts"),
name: env.VITE_APP_KEY,
fileName: "lib"
}
} : {
// 正常模式
outDir: env.VITE_OUT_DIR || "dist"
};
return {
envDir: pathResolve("config"),
base: env.VITE_BASE_PATH,
plugins: [
vue(),
vueJsx(),
vitePluginSutpcLibStaticImport(),
vitePluginSutpcLessDeep(),
vitePluginSutpcCommon({
noOnlineIconify: true
}),
vitePluginPurgeIcons(),
vitePluginSutpcIconPark(),
vite_plugin_sutpc_public_path_default(publicPath),
createSvgIconsPlugin(),
WindiCSS(),
ViteEjsPlugin({
title: env.VITE_APP_TITLE
}),
viteCompression({
threshold: 1024 * 2,
// 对大于 2kb 的文件进行压缩
filter: /.(js|mjs|json|css|html|geojson)$/i,
disable: false
//是否禁用压缩,默认为 false
})
// isBuild &&
// rollupPluginVisualizer({
// emitFile: true, //是否被触摸
// filename: 'analyze.html', //生成分析网页文件名
// open: true, //在默认用户代理中打开生成的文件
// gzipSize: true, //从源代码中收集 gzip 大小并将其显示在图表中
// brotliSize: true //从源代码中收集 brotli 大小并将其显示在图表中
// })
],
define: {
"process.env": {}
},
resolve: {
extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".less", ".css"],
alias: [
// {
// find: 'vue-i18n',
// replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
// },
{
find: /\@\//,
replacement: `${pathResolve("src")}/`
}
]
},
css: {
preprocessorOptions: {
less: {
javascriptEnabled: true,
globalVars: {
publicPath
}
}
}
},
build: {
...buildOptions,
rollupOptions: {
// 确保外部化处理那些你不想打包进库的依赖
external: env.VITE_APP_MODE === "LIB" ? ["vue", "vue-router", "pinia", "echarts"] : [],
output: {
// 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
globals: {
vue: "Vue",
"vue-router": "VueRouter",
pinia: "Pinia",
echarts: "echarts",
"element-plus": "ElementPlus"
}
},
plugins: [
env.VITE_APP_MODE === "LIB" ? externalGlobals({
vue: "Vue",
"vue-router": "VueRouter",
pinia: "Pinia",
echarts: "echarts",
"element-plus": "ElementPlus",
"vue-i18n": "VueI18n"
// '@sutpc/axios': 'request'
}) : null
]
},
sourcemap: env.VITE_SOURCEMAP === "true" ? "inline" : false,
reportCompressedSize: false,
chunkSizeWarningLimit: 2e3,
minify: "terser",
terserOptions: {
compress: {
drop_debugger: env.VITE_DROP_DEBUGGER === "true",
drop_console: env.VITE_DROP_CONSOLE === "true"
}
}
},
server: {
host: true,
proxy: {
[env.VITE_TESPBASE_PATH]: {
target: env.VITE_TESP_API_BASEPATH,
changeOrigin: true
// rewrite: path => path.replace(/^\/web\/tespbiz-prjlib/, '')
},
[env.VITE_FILE_PROXY]: {
target: `http://10.3.4.149:9000`,
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp("^" + env.VITE_FILE_PROXY), "")
},
["/bizapp/" + env.VITE_APP_KEY + "/api/"]: {
target: `http://10.3.4.193:9601`,
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp("^/bizapp/" + env.VITE_APP_KEY + "/api"), "")
},
["/portal/api/"]: {
target: `http://10.3.4.193:10000`,
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp("^/portal/api"), "")
},
["/tiannetST/"]: {
// target: `http://172.16.0.198:12085/api/ps-show`,
target: `http://10.11.121.36:10000/api/ps-show`,
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp("^/tiannetST/"), "")
}
}
},
optimizeDeps: {
include: [
"vue",
"vue-router",
"lodash-es",
"element-plus/es/locale/lang/zh-cn",
"element-plus/es/locale/lang/en",
"@iconify/iconify",
"@sutpc/zebra",
"@sutpc/vue3-ec-resize",
"axios",
"qs",
"echarts",
"vue-i18n"
]
}
};
};
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAidml0ZS1wbHVnaW4tc3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AgICAgICAgICAgICd2dWUtcm91dGVyJzogJ1Z1ZVJvdXRlcicsXG4gICAgICAgICAgICBwaW5pYTogJ1BpbmlhJyxcbiAgICAgICAgICAgIGVjaGFydHM6ICdlY2hhcnRzJyxcbiAgICAgICAgICAgICdlbGVtZW50LXBsdXMnOiAnRWxlbWVudFBsdXMnXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBwbHVnaW5zOiBbXG4gICAgICAgICAgZW52LlZJVEVfQVBQX01PREUgPT09ICdMSUInXG4gICAgICAgICAgICA/IGV4dGVybmFsR2xvYmFscyh7XG4gICAgICAgICAgICAgICAgdnVlOiAnVnVlJyxcbiAgICAgICAgICAgICAgICAndnVlLXJvdXRlcic6ICdWdWVSb3V0ZXInLFxuICAgICAgICAgICAgICAgIHBpbmlhOiAnUGluaWEnLFxuICAgICAgICAgICAgICAgIGVjaGFydHM6ICdlY2hhcnRzJyxcbiAgICAgICAgICAgICAgICAnZWxlbWVudC1wbHVzJzogJ0VsZW1lbnRQbHVzJyxcbiAgICAgICAgICAgICAgICAndnVlLWkxOG4nOiAnVnVlSTE4bidcbiAgICAgICAgICAgICAgICAvLyAnQHN1dHBjL2F4aW9zJzogJ3JlcXVlc3QnXG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICA6IG51bGxcbiAgICAgICAgXVxuICAgICAgfSxcbiAgICAgIHNvdXJjZW1hcDogZW52LlZJVEVfU09VUkNFTUFQID09PSAndHJ1ZScgPyAnaW5saW5lJyA6IGZhbHNlLFxuICAgICAgcmVwb3J0Q29tcHJlc3NlZFNpemU6IGZhbHNlLFxuICAgICAgY2h1bmtTaXplV2FybmluZ0xpbWl0OiAyMDAwLFxuICAgICAgbWluaWZ5OiAndGVyc2VyJyxcbiAgICAgIHRlcnNlck9wdGlvbnM6IHtcbiAgICAgICAgY29tcHJlc3M6IHtcbiAgICAgICAgICBkcm9wX2RlYnVnZ2VyOiBlbnYuVklURV9EUk9QX0RFQlVHR0VSID09PSAndHJ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