This PR is trying to bundle PostCSS plugins used by minifyCSS option into Marp Core.
These plugins (from cssnano project) are designed for development with Node.js ecosystem. So some problems are brought in Marp Core:
postcss-minify-params is depending on browserslist, is originally not need in Marp Core.
postcss-minify-params is using __dirname so brings incompatibillity with ESM. (#314)
Cons: Prebundle will bring complex rollup setting. I have thought about porting plugin implementation from originals, but I thought prebundling is still better to keep up to the latest of (more complex) minify logics.
This PR is trying to bundle PostCSS plugins used by
minifyCSS
option into Marp Core.These plugins (from cssnano project) are designed for development with Node.js ecosystem. So some problems are brought in Marp Core:
postcss-minify-params
is depending onbrowserslist
, is originally not need in Marp Core.postcss-minify-params
is using__dirname
so brings incompatibillity with ESM. (#314)Cons: Prebundle will bring complex rollup setting. I have thought about porting plugin implementation from originals, but I thought prebundling is still better to keep up to the latest of (more complex) minify logics.
Fix #314.