You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have below post css config where I'm generating css from scss file in moduler way. But I have one global scss file which I want to load direct into dom.My current code inject that gloabl scss into each module.
`postcss({
use: [
['sass', { data: '@import "./src/commonStyles/_commoncss.scss";' }] // global scss injection into each `module`
],
plugins: [
autoprefixer(),
postcssImport({
// Resolve SCSS imports and convert to CSS
resolve: function (filename, base) {
return new Promise(function (resolve, reject) {
sass.render(
{
file: `${base}/${filename}`
},
function (err, result) {
if (err) {
reject(err)
} else {
resolve({
contents: result.css.toString()
})
}
}
)
})
}
})
],
modules: true, // // Include CSS in the JavaScript bundle
extract: false // Do not extract CSS into a separate file
})`
The text was updated successfully, but these errors were encountered:
OmKessarwani
changed the title
No option generate moduler css along with one single css which will load separately into dom
No option to generate moduler css along with one single css which will load separately into dom
Apr 18, 2023
I have below post css config where I'm generating css from scss file in moduler way. But I have one global scss file which I want to load direct into dom.My current code inject that gloabl scss into each module.
The text was updated successfully, but these errors were encountered: