HZH 5 years ago
commit
acbf13f0e8
2 changed files with 45 additions and 0 deletions
  1. 21 0
      .gitignore
  2. 24 0
      vue.config.js

+ 21 - 0
.gitignore

@@ -0,0 +1,21 @@
+.DS_Store
+node_modules
+/dist
+
+# local env files
+.env.local
+.env.*.local
+
+# Log files
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw*

+ 24 - 0
vue.config.js

@@ -0,0 +1,24 @@
+module.exports = {
+    outputDir: 'static',    
+    css: {
+        loaderOptions: {
+            sass: {
+                data: `@import "@/sass/_variables.scss";`  //加载全局scss文件
+            }
+        }
+    },
+    productionSourceMap:false,
+    runtimeCompiler: true, //开启运行时模版编译,否则不可使用动态模版
+    devServer: {
+        proxy: {
+            '/': {
+                // target: 'http://localhost:8085',
+                target: 'http://119.23.22.31:30962',
+                // target: 'http://119.23.22.31:31588',
+                autoRewrite: true,
+                ws: false
+            }
+        },       
+        port: 3000
+    }
+}