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:
@ -4,5 +4,5 @@ import dayjs from 'dayjs';
|
||||
const PROJECT_BUILD_TIME = JSON.stringify(dayjs().format('YYYY-MM-DD HH:mm:ss'));
|
||||
|
||||
export const viteDefine = {
|
||||
PROJECT_BUILD_TIME,
|
||||
PROJECT_BUILD_TIME
|
||||
};
|
||||
|
@ -10,6 +10,6 @@ export function resolvePath(rootPath: string, basePath: string) {
|
||||
|
||||
return {
|
||||
root,
|
||||
src,
|
||||
src
|
||||
};
|
||||
}
|
||||
|
@ -15,8 +15,8 @@ export function createViteProxy(viteEnv: ImportMetaEnv) {
|
||||
[http.proxy]: {
|
||||
target: http.url,
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(new RegExp(`^${http.proxy}`), ''),
|
||||
},
|
||||
rewrite: path => path.replace(new RegExp(`^${http.proxy}`), '')
|
||||
}
|
||||
};
|
||||
|
||||
return proxy;
|
||||
|
@ -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: true,
|
||||
resolvers: [IconsResolver({ customCollections: ['custom'], componentPrefix: 'icon' })],
|
||||
}),
|
||||
resolvers: [IconsResolver({ customCollections: ['custom'], componentPrefix: 'icon' })]
|
||||
})
|
||||
];
|
||||
};
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
@ -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