[dev-overlay] minify css (#76370)
### Why? Our internal comments in the css literal templates, are being shipped to the client along with the dev overlay, which is a bad practice. https://github.com/vercel/next.js/blob/7f5a1d39e8a94b0b424ef9538be9dd2802e6ccb6/packages/next/src/client/components/react-dev-overlay/ui/components/errors/error-overlay-bottom-stack/index.tsx#L104-L107 ### How? Added minifying css util that includes removing comments. | Before | After | |--------|--------| |  |  | - Renamed `noop` util to `css`. - Added minifying in `css` util. - Added unit test for `css` util. - Removed unnecessary `css` util usage as it's only required for the entry point (where it injects to `<style>` tag). - Updated README (will follow up to improve). Note: This loses the benefit of VS Code extension `styled-components.vscode-styled-components`, so dropping it from recommendations. | Before | After | |--------|--------| |  |  | Closes NDX-750 Closes NDX-839
Showing
Please
register
or
sign in
to comment