question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Glyphicons not working in production

See original GitHub issue

The fonts in my electron react boilerplate app arent working when running npm run start. I am getting a ERR_FILE_NOT_FOUND in the console on the .ttf, .woff, .woff2 files… I am new to webpack and havent been able to figure it out… maybe someone with some time could help me figure this out. Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
ivanthemehcommented, May 21, 2018

I was able to fix it by changing

output: {
    path: path.join(__dirname, 'app/dist'),
    publicPath: './dist/',
    filename: 'renderer.prod.js'
  },

to

output: {
    path: path.join(__dirname, 'app/dist'),
    publicPath: './',
    filename: 'renderer.prod.js'
  },

I noticed it was looking for the files in app/dist/dist...

0reactions
W1M0Rcommented, Jan 30, 2019

I had the same problem in production when using a global scss file. See my comment here for the resolution: https://github.com/electron-react-boilerplate/electron-react-boilerplate/issues/1426#issuecomment-458824975

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rails: Bootstrap glyphicons not loading in production
After upgrading to Rails 5, the Bootstrap glyphicon icons are not loading properly on heroku. For instance, the Trashcan icon is showing up...
Read more >
Glyphicons are not working in production · Issue #62 - GitHub
In development they are working fine but in production they look like squares. Am I doing something wrong here?
Read more >
Glyphicons of bootstrap not showing up after published site to ...
Firstly, remove the "~/fonts/glyphicons-*" line from your bundle config. This will try to render the raw bytes of the font files as CSS, ......
Read more >
SOLVED-Bootstrap 3 Glyphicons are not working
In my project everything works fine. But when I tried to add some icons, the icon font doesn't displayed the icon properly.
Read more >
Regular license - Glyphicons
For example as prints of t-shirts, mugs, posters or any other product which have a character of repeated production. It is not allowed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found