diff --git a/frontend/package.json b/frontend/package.json index 75addb3a7c..d33d755db0 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -59,6 +59,7 @@ "babel-eslint": "10.0.1", "chalk": "2.4.2", "connect": "3.6.6", + "copy-webpack-plugin": "^4.6.0", "eslint": "5.15.3", "eslint-plugin-vue": "5.2.2", "html-webpack-plugin": "3.2.0", diff --git a/frontend/static/fonts/element-icons.535877f.woff b/frontend/static/fonts/element-icons.535877f.woff new file mode 100644 index 0000000000..02b9a2539e Binary files /dev/null and b/frontend/static/fonts/element-icons.535877f.woff differ diff --git a/frontend/static/fonts/element-icons.732389d.ttf b/frontend/static/fonts/element-icons.732389d.ttf new file mode 100644 index 0000000000..91b74de367 Binary files /dev/null and b/frontend/static/fonts/element-icons.732389d.ttf differ diff --git a/frontend/vue.config.js b/frontend/vue.config.js index 57748c2042..1fbffca388 100644 --- a/frontend/vue.config.js +++ b/frontend/vue.config.js @@ -2,6 +2,8 @@ const path = require('path') const defaultSettings = require('./src/settings.js') +const CopyWebpackPlugin = require('copy-webpack-plugin') + function resolve(dir) { return path.join(__dirname, dir) } @@ -27,6 +29,7 @@ module.exports = { }, before: require('./mock/mock-server.js') }, + pages: { index: { entry: 'src/main.js', @@ -46,7 +49,15 @@ module.exports = { alias: { '@': resolve('src') } - } + }, + plugins: [ + new CopyWebpackPlugin([ + { + from: path.join(__dirname, 'static'), + to: path.join(__dirname, 'dist/static') + } + ]) + ] }, chainWebpack: config => { config.module.rules.delete('svg') // 删除默认配置中处理svg,