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

feat(src): 测试环境地址

parent f994bdcc
......@@ -18,10 +18,10 @@ export default defineConfig(({ mode, command }) => {
// 设置路径
'~': path.resolve(__dirname, './'),
// 设置别名
'@': path.resolve(__dirname, './src')
'@': path.resolve(__dirname, './src'),
},
// https://cn.vitejs.dev/config/#resolve-extensions
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
},
// vite 相关配置
server: {
......@@ -33,9 +33,9 @@ export default defineConfig(({ mode, command }) => {
'/dev-api': {
target: 'http://localhost:8989',
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
css: {
......@@ -46,13 +46,13 @@ export default defineConfig(({ mode, command }) => {
AtRule: {
charset: (atRule) => {
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