You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
8.8 KiB
64 lines
8.8 KiB
// vite.config.ts |
|
import { defineConfig } from "file:///C:/Users/Ly/Desktop/a/knowledge/teaching_integration_platform_template/node_modules/.pnpm/vite@5.2.0_@types+node@20.11.30_sass@1.72.0/node_modules/vite/dist/node/index.js"; |
|
import vue from "file:///C:/Users/Ly/Desktop/a/knowledge/teaching_integration_platform_template/node_modules/.pnpm/@vitejs+plugin-vue@5.0.4_vite@5.2.0_vue@3.4.21/node_modules/@vitejs/plugin-vue/dist/index.mjs"; |
|
import path from "path"; |
|
import { createSvgIconsPlugin } from "file:///C:/Users/Ly/Desktop/a/knowledge/teaching_integration_platform_template/node_modules/.pnpm/vite-plugin-svg-icons@2.0.1_vite@5.2.0/node_modules/vite-plugin-svg-icons/dist/index.mjs"; |
|
import postcssPluginPx2rem from "file:///C:/Users/Ly/Desktop/a/knowledge/teaching_integration_platform_template/node_modules/.pnpm/postcss-plugin-px2rem@0.8.1/node_modules/postcss-plugin-px2rem/index.js"; |
|
var px2remOptions = { |
|
rootValue: 192, |
|
//换算基数, 默认100 ,也就是1440px ,这样的话把根标签的字体规定为1rem为50px,这样就可以从设计稿上量出多少个px直接在代码中写多少px了 |
|
unitPrecision: 5, |
|
//允许REM单位增长到的十进制数字,其实就是精度控制 |
|
// propWhiteList: [], // 默认值是一个空数组,这意味着禁用白名单并启用所有属性。 |
|
// propBlackList: [], // 黑名单 |
|
// exclude:false, //默认false,可以(reg)利用正则表达式排除某些文件夹的方法,例如/(node_module)/ 。如果想把前端UI框架内的px也转换成rem,请把此属性设为默认值 |
|
// selectorBlackList: [], //要忽略并保留为px的选择器 |
|
// ignoreIdentifier: false, //(boolean/string)忽略单个属性的方法,启用ignoreidentifier后,replace将自动设置为true。 |
|
// replace: true, // (布尔值)替换包含REM的规则,而不是添加回退。 |
|
mediaQuery: false, |
|
//(布尔值)允许在媒体查询中转换px |
|
minPixelValue: 0 |
|
//设置要替换的最小像素值(3px会被转rem)。 默认 0 |
|
}; |
|
var vite_config_default = defineConfig({ |
|
base: "/portal", |
|
plugins: [ |
|
vue(), |
|
// 配置svg插件 |
|
createSvgIconsPlugin({ |
|
// Specify the icon folder to be cached |
|
iconDirs: [path.resolve(process.cwd(), "src/assets/icons")], |
|
// Specify symbolId format |
|
symbolId: "icon-[dir]-[name]" |
|
}) |
|
], |
|
server: { |
|
host: "0.0.0.0", |
|
port: 8866 |
|
}, |
|
resolve: { |
|
alias: { |
|
"@": path.resolve("./src") |
|
// 相对路径别名配置,使用 @ 代替 src |
|
// 'vue': 'vue/dist/vue.esm-bundler.js', |
|
} |
|
}, |
|
css: { |
|
preprocessorOptions: { |
|
scss: { |
|
javascriptEnabled: true, |
|
additionalData: '@import "./src/styles/variable.scss";' |
|
} |
|
}, |
|
postcss: { |
|
plugins: [ |
|
// 配置响应式插件 |
|
postcssPluginPx2rem(px2remOptions) |
|
] |
|
} |
|
} |
|
}); |
|
export { |
|
vite_config_default as default |
|
}; |
|
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxMeVxcXFxEZXNrdG9wXFxcXGFcXFxca25vd2xlZGdlXFxcXHRlYWNoaW5nX2ludGVncmF0aW9uX3BsYXRmb3JtX3RlbXBsYXRlXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxMeVxcXFxEZXNrdG9wXFxcXGFcXFxca25vd2xlZGdlXFxcXHRlYWNoaW5nX2ludGVncmF0aW9uX3BsYXRmb3JtX3RlbXBsYXRlXFxcXHZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamV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