i'm trying to use css-loader for :local and :global styles, it's working fine, but when i try to import a librally styles globally, i get error:
Missing whitespace before :global
Here's what i trying to do in my main scss file:
:global{
@import "~bootstrap/scss/bootstrap";
}
I want bootstrap styles be always global, so i can use .container .row and so on in my project.
My webpack config:
{
loader: 'css-loader',
options: {
modules: {
localIdentName: '[path][name]__[local]--[hash:base64:5]',
}
}
},
'postcss-loader',
'sass-loader',
Am i doing something wrong? or there's other way to make bootstrap work as global