提交 162ba5f4 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

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

上级 49aaf376
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
"babel-eslint": "10.0.1", "babel-eslint": "10.0.1",
"chalk": "2.4.2", "chalk": "2.4.2",
"connect": "3.6.6", "connect": "3.6.6",
"copy-webpack-plugin": "^4.6.0",
"eslint": "5.15.3", "eslint": "5.15.3",
"eslint-plugin-vue": "5.2.2", "eslint-plugin-vue": "5.2.2",
"html-webpack-plugin": "3.2.0", "html-webpack-plugin": "3.2.0",
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
const path = require('path') const path = require('path')
const defaultSettings = require('./src/settings.js') const defaultSettings = require('./src/settings.js')
const CopyWebpackPlugin = require('copy-webpack-plugin')
function resolve(dir) { function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
...@@ -27,6 +29,7 @@ module.exports = { ...@@ -27,6 +29,7 @@ module.exports = {
}, },
before: require('./mock/mock-server.js') before: require('./mock/mock-server.js')
}, },
pages: { pages: {
index: { index: {
entry: 'src/main.js', entry: 'src/main.js',
...@@ -46,7 +49,15 @@ module.exports = { ...@@ -46,7 +49,15 @@ module.exports = {
alias: { alias: {
'@': resolve('src') '@': resolve('src')
} }
} },
plugins: [
new CopyWebpackPlugin([
{
from: path.join(__dirname, 'static'),
to: path.join(__dirname, 'dist/static')
}
])
]
}, },
chainWebpack: config => { chainWebpack: config => {
config.module.rules.delete('svg') // 删除默认配置中处理svg, config.module.rules.delete('svg') // 删除默认配置中处理svg,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论