Static GitHub Issues

[2869] 404 ResourceNotFound (ttf, woff, svg)

prev: Disabling code splitting
next: global components non rendered properly on production build?

I'm using ElemeFE/Element, I set it up in a plugin as follow:

import Vue from 'vue';
import ElementUI from 'element-ui';
import lang from 'element-ui/lib/locale/lang/en';
import locale from 'element-ui/lib/locale';
import '../theme/index.css';

locale.use(lang);
Vue.use(ElementUI);

I receive network errors: image

With console errors: GET http://localhost:3000/_nuxt/fonts%0Element-icons.6f0a763.ttf net::ERR_ABORTED

Currently under Nuxt v1.3.0 I think the error might come from nuxt webpack config.


File _nuxt/vendor.js contains:

/***/ "./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.ttf":
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__.p + "fonts\\element-icons.6f0a763.ttf";

/***/ }),

File _nuxt/app.js contains:

/***/ "./theme/fonts/element-icons.ttf?t=1510834658947":
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__.p + "fonts\\element-icons.6f0a763.ttf";

/***/ }),

Does the problem come from \\e that turns into %0E?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2493">#c2493</a>)</em></sub></div>