I have a pure vanilla webcomponent, lets call it "Spinner.js" and a "Spinner.css". Can I bundle this to just one JS-File including
the CSS file?.
Currently my rollup configuration looks like this, but CSS ins not bundle inside *.JS File
const bundle = await rollup({
input: `${webcomponent.pathToWebcomponent}`,
plugins: [nodeResolve(), commonjs(),postcss({
extract: false,
minimize: true,
inject: {
insertAt: 'top',
},
}), terser()],
})
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