mirror of
https://github.com/thesephist/blocks.css.git
synced 2024-08-17 07:10:38 +03:00
29 lines
527 B
JavaScript
29 lines
527 B
JavaScript
import postcss from 'rollup-plugin-postcss'
|
|
|
|
const bundleNames = [
|
|
'blocks',
|
|
'reset',
|
|
'util',
|
|
];
|
|
|
|
const configs = bundleNames.map(name => {
|
|
return {
|
|
input: `src/${name}.css`,
|
|
output: {
|
|
file: `dist/${name}.min.css`,
|
|
format: 'es',
|
|
},
|
|
plugins: [
|
|
postcss({
|
|
minimize: true,
|
|
sourceMap: true,
|
|
extract: true,
|
|
modules: false,
|
|
}),
|
|
],
|
|
}
|
|
});
|
|
|
|
export default configs
|
|
|