56 lines
4.9 KiB
JavaScript
56 lines
4.9 KiB
JavaScript
|
// vite.config.js
|
|||
|
import { defineConfig } from "file:///D:/books/apps/LiHai/plantScreen/node_modules/vite/dist/node/index.js";
|
|||
|
import vue from "file:///D:/books/apps/LiHai/plantScreen/node_modules/@vitejs/plugin-vue/dist/index.mjs";
|
|||
|
import path from "path";
|
|||
|
import postCssPxToRem from "file:///D:/books/apps/LiHai/plantScreen/node_modules/postcss-pxtorem/index.js";
|
|||
|
var __vite_injected_original_dirname = "D:\\books\\apps\\LiHai\\plantScreen";
|
|||
|
var vite_config_default = defineConfig({
|
|||
|
plugins: [vue()],
|
|||
|
server: {
|
|||
|
// ← ← ← ← ← ←
|
|||
|
host: "0.0.0.0"
|
|||
|
// ← 新增内容 ←
|
|||
|
},
|
|||
|
resolve: {
|
|||
|
//别名配置,引用src路径下的东西可以通过@如:import Layout from '@/layout/index.vue'
|
|||
|
alias: {
|
|||
|
"@": path.resolve(__vite_injected_original_dirname, "src")
|
|||
|
}
|
|||
|
},
|
|||
|
css: {
|
|||
|
postcss: {
|
|||
|
plugins: [
|
|||
|
postCssPxToRem({
|
|||
|
rootValue: 192,
|
|||
|
propList: ["*"]
|
|||
|
})
|
|||
|
]
|
|||
|
}
|
|||
|
},
|
|||
|
optimizeDeps: {
|
|||
|
// 开发时 解决这些commonjs包转成esm包
|
|||
|
include: [
|
|||
|
"@jiaminghi/c-render",
|
|||
|
"@jiaminghi/c-render/lib/plugin/util",
|
|||
|
"@jiaminghi/charts/lib/util/index",
|
|||
|
"@jiaminghi/charts/lib/util",
|
|||
|
"@jiaminghi/charts/lib/extend/index",
|
|||
|
"@jiaminghi/charts",
|
|||
|
"@jiaminghi/color"
|
|||
|
]
|
|||
|
},
|
|||
|
build: {
|
|||
|
// 打包时需要另外处理的commonjs规范的包
|
|||
|
commonjsOptions: {
|
|||
|
include: [
|
|||
|
/node_modules/
|
|||
|
// 必须包含
|
|||
|
]
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
export {
|
|||
|
vite_config_default as default
|
|||
|
};
|
|||
|
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxib29rc1xcXFxhcHBzXFxcXExpSGFpXFxcXHBsYW50U2NyZWVuXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJEOlxcXFxib29rc1xcXFxhcHBzXFxcXExpSGFpXFxcXHBsYW50U2NyZWVuXFxcXHZpdGUuY29uZmlnLmpzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9EOi9ib29rcy9hcHBzL0xpSGFpL3BsYW50U2NyZWVuL3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSdcclxuaW1wb3J0IHZ1ZSBmcm9tICdAdml0ZWpzL3BsdWdpbi12dWUnXHJcbmltcG9ydCBwYXRoIGZyb20gJ3BhdGgnXHJcbmltcG9ydCBwb3N0Q3NzUHhUb1JlbSBmcm9tICdwb3N0Y3NzLXB4dG9yZW0nXHJcbmV4cG9ydCBkZWZhdWx0IGRlZmluZUNvbmZpZyh7XHJcbiAgcGx1Z2luczogW3Z1ZSgpXSxcclxuICBzZXJ2ZXI6IHtcdFx0XHRcdC8vIFx1MjE5MCBcdTIxOTAgXHUyMTkwIFx1MjE5MCBcdTIxOTAgXHUyMTkwXHJcbiAgICBob3N0OiAnMC4wLjAuMCdcdC8vIFx1MjE5MCBcdTY1QjBcdTU4OUVcdTUxODVcdTVCQjkgXHUyMTkwXHJcbiAgfSxcclxuICByZXNvbHZlOiB7XHJcbiAgICAvL1x1NTIyQlx1N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