How to disable certain component from Bootstrap on Laravel -


one imagine i'm not 1 trying achieve this, surprised couldn't find answer in google. i'm googling wrong keywords perhaps..

i'm looking way disable glyphicons component bootstrap on laravel application. i'm using sass version of bootstrap.

only way can imagine comment out line @import "bootstrap/glyphicons"; inside node_modules/bootsrap-sass/assets/stylesheets/_bootstrap.scss if understood correct, bad idea since content of directory overwritten updates on bootstrap module. right?

how else prevent sass processor importing glyphicons?

would lasting solution take copy of _bootstrap.scss file resources/assets/sass/, , there comment out glyphicon-line , reference file app.scss ?

as long-term project, want careful architecture...

ended solving way suggested in post:

  1. copy _bootstrap.scss node_modules/bootstrap-sass/assets/stylesheet resources/assets/sass/
  2. @import copied file app.scss instead of 1 in node_modules directory.
  3. comment out components not needed, such glyphicons.

i'm still interested hear of potential downsides solution might have, far can see, shouldn't require maintenance or duplicate work in future.

p.s. if knows way add node_modules/bootstrap-sass/assets/stylesheets/ sass load path in laravel environment, helpful. reason didn't working: https://laracasts.com/discuss/channels/general-discussion/setting-include-path-for-sass-in-elixir


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -