storetext policies

This commit is contained in:
Jesse-Ma
2023-03-29 16:11:59 +08:00
parent b017e7bda1
commit 0de98e660b
4 changed files with 86 additions and 32 deletions

View File

@@ -6,10 +6,10 @@ module.exports = defineConfig({
assetsDir: 'static',
productionSourceMap: false,
configureWebpack: (config) => {
config.experiments = { asyncWebAssembly: true,syncWebAssembly:true }
config.experiments = { asyncWebAssembly: true, syncWebAssembly: true }
config.externals = {
'vue': 'Vue',
@@ -24,8 +24,8 @@ module.exports = defineConfig({
"file-saver": 'saveAs',
"clipboard": "ClipboardJS",
"vue-i18n": "VueI18n",
"html2canvas":"html2canvas",
"wasm_flate":"wasm_flate"
"html2canvas": "html2canvas",
"wasm_flate": "wasm_flate"
};
// 为生产环境修改配置
@@ -68,7 +68,7 @@ module.exports = defineConfig({
proxy: {
"/note": {
target: "https://flagnote.com/", // 后台接口域名
// target: "http://localhost:10000/", // 后台接口域名
// target: "http://localhost:10000/", // 后台接口域名
secure: false, // 如果是https接口需要配置这个参数
changeOrigin: true, //是否跨域
pathRewrite: {