mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
build(projects): update tsconfig、eslintrc
This commit is contained in:
@ -2,7 +2,7 @@ import { fileURLToPath } from 'url';
|
||||
import { defineConfig, loadEnv } from 'vite';
|
||||
import { setupVitePlugins, define } from './build';
|
||||
|
||||
export default defineConfig(configEnv => {
|
||||
export default defineConfig((configEnv) => {
|
||||
const viteEnv = loadEnv(configEnv.mode, `.env.${configEnv.mode}`) as ImportMetaEnv;
|
||||
|
||||
const srcPath = fileURLToPath(new URL('./src', import.meta.url));
|
||||
@ -13,29 +13,29 @@ export default defineConfig(configEnv => {
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': srcPath,
|
||||
'~': rootPath
|
||||
}
|
||||
'~': rootPath,
|
||||
},
|
||||
},
|
||||
define,
|
||||
plugins: setupVitePlugins(configEnv, srcPath, viteEnv),
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
additionalData: `@use "./src/styles/scss/global.scss" as *;`
|
||||
}
|
||||
}
|
||||
additionalData: `@use "./src/styles/scss/global.scss" as *;`,
|
||||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
fs: {
|
||||
strict: false
|
||||
strict: false,
|
||||
},
|
||||
host: '0.0.0.0',
|
||||
port: 3200,
|
||||
open: true
|
||||
open: true,
|
||||
},
|
||||
build: {
|
||||
brotliSize: false,
|
||||
sourcemap: false
|
||||
}
|
||||
sourcemap: false,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user