| | |
| | | url: { |
| | | enable: true, |
| | | config: { |
| | | limit: 1024, // 设定转换尺寸上限 |
| | | limit: 2024, // 设定转换尺寸上限 |
| | | }, |
| | | }, |
| | | cssModules: { |
| | |
| | | |
| | | chain.plugin('unplugin-auto-import').use( |
| | | AutoImport({ |
| | | imports: ['vue', 'pinia', 'vue-router', { '@/constants': ['RouterPath'] }], |
| | | imports: [ |
| | | 'vue', |
| | | 'pinia', |
| | | 'vue-router', |
| | | { '@/constants': ['RouterPath'] }, |
| | | { '@/utils': ['RouteHelper'] }, |
| | | ], |
| | | eslintrc: { |
| | | enabled: true, // Default `false` |
| | | filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json` |
| | |
| | | devServer: { |
| | | proxy: { |
| | | '/api': { |
| | | target: 'http://localhost:57190', // 目标服务器地址 |
| | | target: 'http://localhost:58190', // 目标服务器地址 |
| | | changeOrigin: true, |
| | | }, |
| | | }, |
| | |
| | | url: { |
| | | enable: true, |
| | | config: { |
| | | limit: 1024, // 设定转换尺寸上限 |
| | | limit: 2024, // 设定转换尺寸上限 |
| | | }, |
| | | }, |
| | | cssModules: { |
| | |
| | | htmlPluginOption: { |
| | | favicon: './public/logo-v.png', |
| | | }, |
| | | useHtmlComponents: true, |
| | | webpackChain(chain, webpack) { |
| | | chain.plugin('unplugin-auto-import').use( |
| | | AutoImport({ |
| | | imports: ['vue', 'pinia', 'vue-router', { '@/constants': ['RouterPath'] }], |
| | | imports: [ |
| | | 'vue', |
| | | 'pinia', |
| | | 'vue-router', |
| | | { '@/constants': ['RouterPath'] }, |
| | | { '@/utils': ['RouteHelper'] }, |
| | | ], |
| | | eslintrc: { |
| | | enabled: true, // Default `false` |
| | | filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json` |