Terser can't handle the static blocks our code produce. SWC can handle this, but causes other problems caused by the global-error files. It's not a nice solution but the benefit is bigger than the risk.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
The build script prepares the package for a production build, builds the app, places every all needed files in a dist directory and cleans it.
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Currently, frontend stack traces are unhelpful in production builds, because they only include minified code.
By enabling source maps for production builds, we enhance debuggability and error-reports.
Ref: https://nextjs.org/docs/advanced-features/source-maps
Signed-off-by: David Mehren <git@herrmehren.de>
These icon replace fork awesome. A linter informs the user about the deprecation.
See https://github.com/hedgedoc/hedgedoc/issues/2929
Co-authored-by: Philip Molares <philip.molares@udo.edu>
Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>