Preferred way of using Bootstrap in Webpack

前端 未结 3 1521
心在旅途
心在旅途 2020-12-06 04:32

Greetings one and all,

I have been playing around with Bootstrap for Webpack, but I\'m at the point of tearing my hair out. I have literally gone through loads of bl

3条回答
  •  离开以前
    2020-12-06 05:05

    I highly recommend using bootstrap-loader. You add a config file (.bootstraprc in your root folder) where you can exclude the bootstrap elements you don't want and tell where your variables.scss and bootstrap.overrides.scss are. Define you SCSS variables, do your overrides, add your webpack entry and get on with your life.

提交回复
热议问题