Closed sinedied closed 1 year ago
I found postcss-minify-params
for CSS minification is depending on CJS __dirname
.
https://github.com/cssnano/cssnano/blob/747f16c36f30f0f97e6b6793b8952b3e7d890025/packages/postcss-minify-params/src/index.js#L99
This error is not what we expected so I'm considering to deal with this by some way, but you can try to disable CSS minification by minifyCSS: false
constructor option as a workaround.
const marp = new Marp({ minifyCSS: false });
Thanks, I'll try that!
Hello!
I'm interested in integrating![image](https://user-images.githubusercontent.com/593151/186158324-ca2fc041-f969-4519-b1db-683814d2e901.png)
@marp-team/marp-core
in an existing Angular app to convert markdown on-the-fly. But when I'm following the base instructions, I get this error in the browser:It seems that some CJS dependencies relies on Node-specific features like
__dirname
, breaking code execution. Is there a workaround or a pre-builtmarp-core
that we could use?Thanks