0

Im trying to bundle my project using webpack 4.

structure for bootstrap:

public
    css
    images
    js
    vendor
        bootstrap\dist
            css
            fonts
                glyphicons-halflings-regular.eot
                glyphicons-halflings-regular.svg
                glyphicons-halflings-regular.ttf
                glyphicons-halflings-regular.woff
                glyphicons-halflings-regular.woff2  
            js

webpack is unable to locate "fonts" and throws error while building enter image description here

New123
  • 219
  • 1
  • 4
  • 13

1 Answers1

0

I solved it as i was using bootstrap 4 and Bootstrap v4 drops the glyphicon font altogether.so, the error occurs instead downgrading with version 3 and below works. enter image description here

Font Awesome can be used alternative to glyphicons on bootstarp 4. Bootstrap 4 - Glyphicons migration?

New123
  • 219
  • 1
  • 4
  • 13