🔧工具(other): modify frame
This commit is contained in:
@@ -10,7 +10,7 @@ import Components from 'unplugin-vue-components/vite'
|
||||
//ant-design-vue
|
||||
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'
|
||||
|
||||
// svg plugin
|
||||
// icons plugin
|
||||
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
|
||||
|
||||
import autoprefixer from 'autoprefixer'
|
||||
@@ -37,7 +37,7 @@ export default defineConfig(({ mode, command }) => {
|
||||
less: {
|
||||
javascriptEnabled: true,
|
||||
charset: false, //禁用字符集声明(charset 选项用于控制是否在生成的 CSS 文件的头部添加 @charset "UTF-8";)
|
||||
additionalData: '@import "./src/style/variables.less";'
|
||||
additionalData: '@import "./src/assets/styles/variables.less";'
|
||||
}
|
||||
},
|
||||
postcss: {
|
||||
@@ -112,10 +112,10 @@ export default defineConfig(({ mode, command }) => {
|
||||
ext: '.gz',
|
||||
deleteOriginFile: true // 源文件压缩后是否删除
|
||||
}),
|
||||
// 修改 svg 相关配置
|
||||
// 修改 icons 相关配置
|
||||
createSvgIconsPlugin({
|
||||
// 指定需要缓存的图标文件夹
|
||||
iconDirs: [path.resolve(__dirname, './src/assets/svg')]
|
||||
iconDirs: [path.resolve(__dirname, './src/assets/icons')]
|
||||
}),
|
||||
legacy({
|
||||
renderLegacyChunks: true,
|
||||
|
Reference in New Issue
Block a user