From 6d8222ebcbb4ff1074646d65de8b35bcd8404f11 Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期二, 16 十一月 2021 17:13:21 +0800 Subject: [PATCH] ts配置 --- vue.config.js | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/vue.config.js b/vue.config.js index ad215b7..5547a60 100644 --- a/vue.config.js +++ b/vue.config.js @@ -44,6 +44,8 @@ const serverUrl = "http://192.168.20.189:7009"; //const serverUrl = "http://192.168.20.10:9000"; +const cir = require("circular-dependency-plugin"); + module.exports = { pages, chainWebpack: (config) => { @@ -134,6 +136,17 @@ }, }, }, + configureWebpack: { + plugins: [ + new cir({ + exclude: /a\.js|node_modules/, + include: /dir/, + failOnError: true, + allowAsyncCycles: false, + cwd: process.cwd(), + }), + ], + }, /* css:{ loaderOptions:{ scss:{ -- Gitblit v1.8.0