From e31a406185ae34e3c255618a470e9123fbff0a72 Mon Sep 17 00:00:00 2001 From: chenwei Date: Fri, 30 Aug 2024 16:56:17 +0800 Subject: [PATCH] update --- frontend/front/amis.copy.js | 23 ----------------------- frontend/front/vue.config.js | 3 +-- 2 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 frontend/front/amis.copy.js diff --git a/frontend/front/amis.copy.js b/frontend/front/amis.copy.js deleted file mode 100644 index be030c4..0000000 --- a/frontend/front/amis.copy.js +++ /dev/null @@ -1,23 +0,0 @@ -const CopyWebpackPlugin = require('copy-webpack-plugin') -const path = require('path') - -const files = [ - 'sdk.js', - 'helper.css', - 'sdk.css', - 'iconfont.css', - 'iconfont.eot', - 'iconfont.woff', - 'iconfont.svg', - 'charts.js' -] - -const CopyAMISAssets = new CopyWebpackPlugin( - files.map((file) => { - return { - from: path.resolve(__dirname, 'node_modules', 'amis', 'sdk', file), - to: `./static/amis/${file}`, - } - }) -) -module.exports = CopyAMISAssets diff --git a/frontend/front/vue.config.js b/frontend/front/vue.config.js index e68ce93..a75a1c2 100644 --- a/frontend/front/vue.config.js +++ b/frontend/front/vue.config.js @@ -14,7 +14,7 @@ const { donationConsole, } = require('./src/config') const { dateFormat } = require('./src/utils/date') -const CopyAMISAssets = require('./amis.copy.js') + if (donation) donationConsole() const { version, author } = require('./package.json') const Webpack = require('webpack') @@ -81,7 +81,6 @@ module.exports = { new WebpackBar({ name: webpackBarName, }), - CopyAMISAssets, ], } if (process.env.NODE_ENV !== 'development') { -- libgit2 0.21.2