4 Star 1 Fork 0

喻娟/javascrip-ant-design-vue3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.js.timestamp-1727686483449-6d824d9ca2eb9.mjs 11.76 KB
一键复制 编辑 原始数据 按行查看 历史
喻娟 提交于 2024-12-11 17:29 . Save local changes before pull
// vite.config.js
import { resolve } from "path";
import vue from "file:///D:/a_java/code/smart-admin-master/smart-admin-web/javascript-ant-design-vue3/node_modules/@vitejs/plugin-vue/dist/index.mjs";
// src/theme/custom-variables.js
import { theme } from "file:///D:/a_java/code/smart-admin-master/smart-admin-web/javascript-ant-design-vue3/node_modules/ant-design-vue/lib/index.js";
import convertLegacyToken from "file:///D:/a_java/code/smart-admin-master/smart-admin-web/javascript-ant-design-vue3/node_modules/ant-design-vue/lib/theme/convertLegacyToken.js";
var { defaultAlgorithm, defaultSeed } = theme;
var mapToken = defaultAlgorithm(defaultSeed);
var token = convertLegacyToken.default(mapToken);
var custom_variables_default = {
"@primary-color": token["primary-color"],
// 全局主色
"@base-bg-color": "#fff",
"@hover-bg-color": "rgba(0, 0, 0, 0.025)",
"@hover-bg-color-night": "rgba(255, 255, 255, 0.025)",
"@header-light-bg-hover-color": "#f6f6f6",
"@header-height": "80px",
"@header-user-height": "40px",
"@page-tag-height": "40px",
"@theme-list": ["light", "dark", "night"]
};
// vite.config.js
var __vite_injected_original_dirname = "D:\\a_java\\code\\smart-admin-master\\smart-admin-web\\javascript-ant-design-vue3";
var pathResolve = (dir) => {
return resolve(__vite_injected_original_dirname, ".", dir);
};
var vite_config_default = {
base: process.env.NODE_ENV === "production" ? "/" : "/",
root: process.cwd(),
resolve: {
alias: [
// 国际化替换
{
find: "vue-i18n",
replacement: "vue-i18n/dist/vue-i18n.cjs.js"
},
// 绝对路径重命名:/@/xxxx => src/xxxx
{
find: /\/@\//,
replacement: pathResolve("src") + "/"
},
{
find: /^~/,
replacement: ""
}
]
},
// 服务端渲染
server: {
host: "0.0.0.0",
port: 8081
},
plugins: [vue()],
optimizeDeps: {
include: ["ant-design-vue/es/locale/zh_CN", "dayjs/locale/zh-cn", "ant-design-vue/es/locale/en_US"],
exclude: ["vue-demi"]
},
build: {
// 清除console和debugger
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true
}
},
rollupOptions: {
output: {
//配置这个是让不同类型文件放在不同文件夹,不会显得太乱
chunkFileNames: "js/[name]-[hash].js",
entryFileNames: "js/[name]-[hash].js",
assetFileNames: "[ext]/[name]-[hash].[ext]",
manualChunks(id) {
if (id.includes("node_modules")) {
return id.toString().split("node_modules/")[1].split("/")[0].toString();
}
}
}
},
target: "modules",
outDir: "dist",
// 指定输出路径
assetsDir: "assets",
// 指定生成静态文件目录
assetsInlineLimit: "4096",
// 小于此阈值的导入或引用资源将内联为 base64 编码
chunkSizeWarningLimit: 500,
// chunk 大小警告的限制
minify: "terser",
// 混淆器,terser构建后文件体积更小
emptyOutDir: true
//打包前先清空原有打包文件
},
css: {
preprocessorOptions: {
less: {
modifyVars: custom_variables_default,
javascriptEnabled: true
}
}
},
define: {
__INTLIFY_PROD_DEVTOOLS__: false,
"process.env": process.env
}
};
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiLCAic3JjL3RoZW1lL2N1c3RvbS12YXJpYWJsZXMuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxhX2phdmFcXFxcY29kZVxcXFxzbWFydC1hZG1pbi1tYXN0ZXJcXFxcc21hcnQtYWRtaW4td2ViXFxcXGphdmFzY3JpcHQtYW50LWRlc2lnbi12dWUzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0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sZ0JBQWdCO0FBQUEsUUFDaEIsZ0JBQWdCO0FBQUEsUUFDaEIsYUFBYSxJQUFJO0FBRWYsY0FBSSxHQUFHLFNBQVMsY0FBYyxHQUFHO0FBQy9CLG1CQUFPLEdBQUcsU0FBUyxFQUFFLE1BQU0sZUFBZSxFQUFFLENBQUMsRUFBRSxNQUFNLEdBQUcsRUFBRSxDQUFDLEVBQUUsU0FBUztBQUFBLFVBQ3hFO0FBQUEsUUFDRjtBQUFBLE1BQ0Y7QUFBQSxJQUNGO0FBQUEsSUFDQSxRQUFRO0FBQUEsSUFDUixRQUFRO0FBQUE7QUFBQSxJQUNSLFdBQVc7QUFBQTtBQUFBLElBQ1gsbUJBQW1CO0FBQUE7QUFBQSxJQUNuQix1QkFBdUI7QUFBQTtBQUFBLElBQ3ZCLFFBQVE7QUFBQTtBQUFBLElBQ1IsYUFBYTtBQUFBO0FBQUEsRUFDZjtBQUFBLEVBQ0EsS0FBSztBQUFBLElBQ0gscUJBQXFCO0FBQUEsTUFDbkIsTUFBTTtBQUFBLFFBQ0osWUFBWTtBQUFBLFFBQ1osbUJBQW1CO0FBQUEsTUFDckI7QUFBQSxJQUNGO0FBQUEsRUFDRjtBQUFBLEVBQ0EsUUFBUTtBQUFBLElBQ04sMkJBQTJCO0FBQUEsSUFDM0IsZUFBZSxRQUFRO0FBQUEsRUFDekI7QUFDRjsiLAogICJuYW1lcyI6IFtdCn0K
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yu_juan0201/javascrip-ant-design-vue3.git
[email protected]:yu_juan0201/javascrip-ant-design-vue3.git
yu_juan0201
javascrip-ant-design-vue3
javascrip-ant-design-vue3
master

搜索帮助