Wolfr
Wolfr
@thusc OK, noted!
A new repo that only depends on Next.js and not tailwind: https://github.com/usebedrock/bedrock2-nextjs
New suggestion: minify the bundle. This could also be tied to a setting: production or development build. I discovered CodeMirror is by far the biggest dependency, it weights 400-500kb if...
New suggestion: minify the CSS bundle as well.
Minification was implemented, Prism code blocks are in progress, the removing jQuery part is partially handled but needs more work.
* core-prototype-nav.js: 95kb minified * core-style-guide.js: 126kb minified It can be better but it's more reasonable. One problem, because of the splitting of prototype nav and core styleguide, jQuery is...
`rememberScroll` also uses jQuery. In 7cf5e4715a2023b5b2fcb7ae2d9782dfe0c46d00 I tried to remove it, seems to work.
This could be as simple as making these lines depend on a new setting: ``` html = beautify(html, config.prettify); res.send(html); ```
It wasn't that simple, but a start was made in https://github.com/usebedrock/bedrock/tree/feature/html-minification . I also noticed that the prettify object has not been corresponding to the right package for years. Nobody...
Example, here is the search for “radio” in Bedrock - And here is the search for “radio” in Storybook. Storybook finds the “deeper” components.