forked from github/dataease
fix: 前端插件(角色组织)字体文件404错误
This commit is contained in:
parent
49aaf376e7
commit
162ba5f48b
@ -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",
|
||||
|
BIN
frontend/static/fonts/element-icons.535877f.woff
Normal file
BIN
frontend/static/fonts/element-icons.535877f.woff
Normal file
Binary file not shown.
BIN
frontend/static/fonts/element-icons.732389d.ttf
Normal file
BIN
frontend/static/fonts/element-icons.732389d.ttf
Normal file
Binary file not shown.
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user