bootstrap-webpack
bootstrap-webpack copied to clipboard
support latest 3.x
Trying to import the responsive-embed
less styles (available since 3.1.0), I noticed it's not listed to the bootstrap-styles.loader.js
.
Any chance it could be added?
Use custom configuration. https://github.com/gowravshekar/bootstrap-webpack#custom-configuration
I am using custom configuration. But the bootstrap-styles.loader.js is not importing the responsive-embed styles because it is not listed in the style
array, which is filtered by the styles listed in the custom configuration?
var styles = [
...
]
source = start + styles.filter(function (style) {
return config.styles[style];
}).map(function (style) {
return "@import \"~bootstrap/less/" + style + ".less\";";
}).join("\n");
For what it's worth, a workaround is to just add the import statement in your bootstrap.config.less
// File: bootstrap.config.less @import "~bootstrap/less/responsive-embed.less"; .....
@ivanchoo , you just completely saved me, thank you so much. I had thought that the addition of 'responsive-utilities' in the bootstrap.config.js would include the responsive-embed functionality without the explicit addition to the bootstrap.config.less file.