Importing bootstrap from a styl file that's processed by Webpack also applies the other loaders like CSS Module, and post CSS etc, which you don't really want to be applied to Bootstrap.
loaders.push({
test: /\.styl$/
include: sourceDir, // << even though I have this so as not to apply
// on files from 'node_modules', but it only works in webpack
// context, i.e. .js files, not in .styl files (apparently)
loader: extract.extract({
loader: `css-loader?importLoaders=3!postcss-loader!namespace-css-module-loader!stylus-loader`,
fallbackLoader: 'style-loader'
}),
});
Importing bootstrap from a styl file that's processed by Webpack also applies the other loaders like CSS Module, and post CSS etc, which you don't really want to be applied to Bootstrap.
For example:
outputs:
My webpack config is