shakacode / bootstrap-loader

Load Bootstrap styles and scripts in your Webpack bundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use cosmiconfig to get the bootstraprc file

muuvmuuv opened this issue · comments

It happened today that I had to realize that bootstrap-loader cannot find my .bootstraprc.json. There is a package called Cosmiconfig that would better handle those configs.

Excellent suggestion!

@muuvmuuv I'd be open to considering a PR.

@alexfedoseev Agree it's a good idea?

@x-yuri Check this out. Any interest in making a PR for this?

@justin808 Unfortunately, not in the near future. I don't have a problem with naming the file .bootstraprc.

What's really annoying is that you can't just import 'bootstrap-loader' on production. I hope I'll be able to work around that, but being able to just import 'bootstrap-loader' would be great. Switching to require might introduce issues with CSS order (imports are hoisted), tree shaking.