Docusaurus currently uses Terser to minify source and generate license files, and Terser requires that source code either have a license comment /*! comment or use the @license tag in a comment in order for it to generate and include license information in the output. This can result in sites that may be distributing OSS code to browsers without properly fulfilling the license requirements of that code. For example, the theme-mermaid plugin distributes mermaidjs to the browser, but the bundle process in docusaurus does not capture the mermaidjs license like it does with React, prism, mark.js, etc. This can easily be accomplished using the license-webpack-plugin ( https://www.npmjs.com/package/license-webpack-plugin ) in the webpack bundle process