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
})`
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too