[SOLVED] Npm package LESS tries to load front from "localhost:3000/fonts/url.tff"

I’m running into an issue where I’m importing the Vue iView framework and it’s failing to load the fonts when imported from npm. I’m importing the css like this:

import 'iview/dist/styles/iview.css';

and in the iView source code they use this to load the font:


This leads to Meteor trying to load it from

Request URL:http://localhost:3000/fonts/ionicons.ttf?v=2.0.0

Now I could copy the font from node_modules/iview/dist/fonts into public/fonts, but then those fonts would be loaded twice which isn’t an option because it’s needlessly bloating the bundle size. I could also load it from a CDN but I’d prefer it to be loaded with my bundle. Does anyone know a solution to this?

Turns out the solution is to put it in an atmosphere package and include the font files