瀏覽代碼

fix(webapp): add build paramter for vuelidate@0.7.7

This is a workaround. `vuelidate` should be updated to newer mayor.
Rotzbua 2 年之前
父節點
當前提交
e626401783
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      www/webapp/vite.config.js

+ 3 - 0
www/webapp/vite.config.js

@@ -6,6 +6,9 @@ import {VuetifyResolver} from 'unplugin-vue-components/resolvers'
 import vue from '@vitejs/plugin-vue2'
 
 export default defineConfig({
+    define: {
+        'process.env.BUILD': '"web"' // fix for vuelidate@0.7.7
+    },
     plugins: [
         vue(),
         Components({