Commit d3cc0342 authored by 刘怀志's avatar 刘怀志

feat(src): 测试环境地址

parent f994bdcc
...@@ -18,10 +18,10 @@ export default defineConfig(({ mode, command }) => { ...@@ -18,10 +18,10 @@ export default defineConfig(({ mode, command }) => {
// 设置路径 // 设置路径
'~': path.resolve(__dirname, './'), '~': path.resolve(__dirname, './'),
// 设置别名 // 设置别名
'@': path.resolve(__dirname, './src') '@': path.resolve(__dirname, './src'),
}, },
// https://cn.vitejs.dev/config/#resolve-extensions // https://cn.vitejs.dev/config/#resolve-extensions
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'] extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
}, },
// vite 相关配置 // vite 相关配置
server: { server: {
...@@ -33,9 +33,9 @@ export default defineConfig(({ mode, command }) => { ...@@ -33,9 +33,9 @@ export default defineConfig(({ mode, command }) => {
'/dev-api': { '/dev-api': {
target: 'http://localhost:8989', target: 'http://localhost:8989',
changeOrigin: true, changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '') rewrite: (p) => p.replace(/^\/dev-api/, ''),
} },
} },
}, },
//fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file //fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file
css: { css: {
...@@ -46,13 +46,13 @@ export default defineConfig(({ mode, command }) => { ...@@ -46,13 +46,13 @@ export default defineConfig(({ mode, command }) => {
AtRule: { AtRule: {
charset: (atRule) => { charset: (atRule) => {
if (atRule.name === 'charset') { if (atRule.name === 'charset') {
atRule.remove(); atRule.remove()
} }
} },
} },
} },
] ],
} },
} },
} }
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment