generator-bootstrap4 icon indicating copy to clipboard operation
generator-bootstrap4 copied to clipboard

font resource paths

Open smerth opened this issue 9 years ago • 1 comments

Hi there, after running grunt serve:dist I have the site running. But I am getting some "Failed to load resource" errors in the console.

For example: /bower_components/octicons/octicons/octicons.svg?v=6f0908ee5b07e503e10c6040adaebd65ea4f4c0e#octicons

I am wondering why font-awesome and octicons are trying to load from bower_components? I think Grunt is bundling the icon css into a vendor css file for the dist build...

What should I do about these svg files...

You can see my site here.

Thanks for your help...

smerth avatar Sep 20 '16 21:09 smerth

Hello!

I have a similar problem like @smerth while using the font-awesome icons.

After building I receive the following error msg in console:

Failed to decode downloaded font: https://domain.com/bower_components/components-font-awesome/fonts/fontawesome-webfont.woff2?v=4.4.0

The app is directly in the root directory.

It seems like some step is not able to include the fonts in distribution. Dev mode via grunt serveworks well.

Reproduce:

  • run npm install -g generator-bootstrap4 http-server && mkdir ~/testb4 && cd ~/testb4 && yo bootstrap4
  • choose to enable flex box
  • choose to use font-awesome
  • run grunt build && cd dist && http-server
  • Open your Browser and navigate to http://localhost (add shown port if necessary)

mko-x avatar Apr 11 '17 14:04 mko-x