luohailiang 3 年之前
父节点
当前提交
dde61e1c07
共有 1 个文件被更改,包括 28 次插入0 次删除
  1. 28 0
      vite.config.js

+ 28 - 0
vite.config.js

@@ -0,0 +1,28 @@
+import { defineConfig } from 'vite'
+import { createVuePlugin } from 'vite-plugin-vue2'
+import { resolve } from 'path'
+
+// https://vitejs.dev/config/
+export default defineConfig(({ command }) => {
+  const config = {
+    plugins: [
+      createVuePlugin({
+        jsx: true,
+      }),
+    ],
+    resolve: {
+      alias: {
+        '@': resolve(__dirname, 'src'),
+        '@c': resolve(__dirname, 'src/components'),
+      },
+    },
+    css:{
+
+    }
+  }
+  if (command === 'build') {
+    config.base = '/app/activityRating/manage'
+  }
+
+  return config
+})