diff --git a/public/fonts/element-icons.ttf b/public/theme/fonts/element-icons.ttf similarity index 100% rename from public/fonts/element-icons.ttf rename to public/theme/fonts/element-icons.ttf diff --git a/public/fonts/element-icons.woff b/public/theme/fonts/element-icons.woff similarity index 100% rename from public/fonts/element-icons.woff rename to public/theme/fonts/element-icons.woff diff --git a/vue.config.js b/vue.config.js index ea5140310..2782df85e 100644 --- a/vue.config.js +++ b/vue.config.js @@ -106,20 +106,6 @@ module.exports = { // when there are many pages, it will cause too many meaningless requests config.plugins.delete('prefetch') - config.module - .rule('fonts') - .test(/.(ttf|otf|eot|woff|woff2)$/) - .use('url-loader') - .loader('url-loader') - .tap(options => { - options = { - limit: 50000, - name: '/public/fonts/[name].[ext]' - } - return options - }) - .end() - // set svg-sprite-loader config.module .rule('svg')