mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-23 23:39:47 +08:00
build(projects): update tsconfig、eslintrc
This commit is contained in:
@ -4,5 +4,5 @@ import dayjs from 'dayjs';
|
||||
const PROJECT_BUILD_TIME = JSON.stringify(dayjs().format('YYYY-MM-DD HH:mm:ss'));
|
||||
|
||||
export const define = {
|
||||
PROJECT_BUILD_TIME
|
||||
PROJECT_BUILD_TIME,
|
||||
};
|
||||
|
@ -10,8 +10,8 @@ export default (config: ConfigEnv): PluginOption[] => {
|
||||
inject: {
|
||||
data: {
|
||||
appName: viteEnv.VITE_APP_NAME,
|
||||
appTitle: viteEnv.VITE_APP_TITLE
|
||||
}
|
||||
}
|
||||
appTitle: viteEnv.VITE_APP_TITLE,
|
||||
},
|
||||
},
|
||||
});
|
||||
};
|
||||
|
@ -8,14 +8,14 @@ export default (srcPath: string) => {
|
||||
Icons({
|
||||
compiler: 'vue3',
|
||||
customCollections: {
|
||||
custom: FileSystemIconLoader(`${srcPath}/assets/svg`)
|
||||
custom: FileSystemIconLoader(`${srcPath}/assets/svg`),
|
||||
},
|
||||
scale: 1,
|
||||
defaultClass: 'inline-block'
|
||||
defaultClass: 'inline-block',
|
||||
}),
|
||||
Components({
|
||||
dts: false,
|
||||
resolvers: [IconsResolver({ customCollections: ['custom'], componentPrefix: 'icon' })]
|
||||
})
|
||||
resolvers: [IconsResolver({ customCollections: ['custom'], componentPrefix: 'icon' })],
|
||||
}),
|
||||
];
|
||||
};
|
||||
|
@ -5,5 +5,5 @@ export default viteMockServe({
|
||||
injectCode: `
|
||||
import { setupMockServer } from '../mock';
|
||||
setupMockServer();
|
||||
`
|
||||
`,
|
||||
});
|
||||
|
@ -2,5 +2,5 @@ import { visualizer } from 'rollup-plugin-visualizer';
|
||||
|
||||
export default visualizer({
|
||||
gzipSize: true,
|
||||
brotliSize: true
|
||||
brotliSize: true,
|
||||
});
|
||||
|
Reference in New Issue
Block a user