加入后台管理模块。
This commit is contained in:
@@ -15,33 +15,33 @@ import path from "path";
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig((command, mode) =>
|
||||
{
|
||||
const env = loadEnv(mode, process.cwd(), "");
|
||||
const env = loadEnv(mode, process.cwd(), "");
|
||||
|
||||
return {
|
||||
plugins: [vue(),],
|
||||
base: "./",
|
||||
resolve: {
|
||||
//配置别名
|
||||
alias: [
|
||||
{
|
||||
find: /^~/,
|
||||
replacement: "",
|
||||
return {
|
||||
plugins: [vue(),],
|
||||
base: "./",
|
||||
resolve: {
|
||||
//配置别名
|
||||
alias: [
|
||||
{
|
||||
find: /^~/,
|
||||
replacement: "",
|
||||
},
|
||||
{
|
||||
find: "@",
|
||||
replacement: path.resolve(__dirname, "src"),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
find: "@",
|
||||
replacement: path.resolve(__dirname, "src"),
|
||||
define: {
|
||||
__APP_ENV__: env.APP_ENV,
|
||||
},
|
||||
],
|
||||
},
|
||||
define: {
|
||||
__APP_ENV__: env.APP_ENV,
|
||||
},
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
additionalData: "@import \"./src/assets/css/public/color.scss\";",
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
additionalData: "@import \"./src/assets/css/public/color.scss\";",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user