production use terser-webpack-plugin no show
poohlaha opened this issue · comments
Description
I use the terser webpack plugin
plugin with webpack5
in a production environment:
minimizer.push(new TerserWebpackPlugin())
I saw that all the nodes in canvas were loaded, and the text was also cut.
A blank space page
It's okay in the testing environment。
env:
react: 18.2.0
react-pdf: 7.6.0
webpack: 5.88.2
terser-webpack-plugin: 5.3.9
Environment
- Browser (if applicable): chrome
- React-PDF version: 18.2.0
- React version: 7.6.0
- Webpack version (if applicable): 5.88.2
terser-webpack-plugin: 5.3.9
For starters, I don't understand why would you manually add terser-webpack-plugin if that's what Webpack uses for minification out of the box 🤔
I was not able to reproduce your issue on included Webpack 5 sample. When building for production and serving the output directory using serve
I got, as expected:
I'm closing this because of no reply, but I'm happy to look into this if a reproducible example is provided.