mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-23 23:39:47 +08:00
style(projects): update prettier config
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { defineConfig, loadEnv } from 'vite';
|
||||
import { resolvePath, viteDefine, setupVitePlugins, createViteProxy } from './build';
|
||||
|
||||
export default defineConfig((configEnv) => {
|
||||
export default defineConfig(configEnv => {
|
||||
const viteEnv = loadEnv(configEnv.mode, `.env.${configEnv.mode}`) as ImportMetaEnv;
|
||||
const vitePath = resolvePath('./', import.meta.url);
|
||||
|
||||
@ -10,26 +10,26 @@ export default defineConfig((configEnv) => {
|
||||
resolve: {
|
||||
alias: {
|
||||
'~': vitePath.root,
|
||||
'@': vitePath.src,
|
||||
},
|
||||
'@': vitePath.src
|
||||
}
|
||||
},
|
||||
define: viteDefine,
|
||||
plugins: setupVitePlugins(configEnv, vitePath.src, viteEnv),
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
additionalData: `@use "./src/styles/scss/global.scss" as *;`,
|
||||
},
|
||||
},
|
||||
additionalData: `@use "./src/styles/scss/global.scss" as *;`
|
||||
}
|
||||
}
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: Number(viteEnv.VITE_SERVER_PORT),
|
||||
open: true,
|
||||
proxy: createViteProxy(viteEnv),
|
||||
proxy: createViteProxy(viteEnv)
|
||||
},
|
||||
build: {
|
||||
brotliSize: false,
|
||||
},
|
||||
brotliSize: false
|
||||
}
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user