fix: 前端插件(角色组织)字体文件404错误

This commit is contained in:
fit2cloud-chenyw 2021-07-30 11:04:38 +08:00
parent 49aaf376e7
commit 162ba5f48b
4 changed files with 13 additions and 1 deletions

View File

@ -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",

Binary file not shown.

Binary file not shown.

View File

@ -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,