In yourrollup.config.jsfile: importcssbundlefrom'rollup-plugin-css-bundle';exportdefault{input:'index.js',output: {file:'dist/index.js',format:'cjs'},plugins: [cssbundle()] }; Like all well-behaved Rollup plugins, cssbundle supports theincludeandexcludeoptions that filter the files on which...
In yourrollup.config.jsfile: importcssbundlefrom'rollup-plugin-css-bundle'; exportdefault{ input:'index.js', output:{ file:'dist/index.js', format:'cjs' }, plugins:[cssbundle()] }; Like all well-behaved Rollup plugins, cssbundle supports theincludeandexcludeoptions that filter the files ...
// rollup.config.js import cssbundle from 'rollup-plugin-css-bundle'; import postcss from 'postcss'; import autoprefixer from 'autoprefixer'; export default { input: 'index.js', output: { file: 'dist/index.js', format: 'cjs' }, plugins: [ cssbundle({ transform: code => postcss([...