It would be great to see support for CSS Blocks
CSS Blocks is a CSS framework that uses static analysis and dead code elimination to output highly performant stylesheets. Perhaps it could be a good fit for Next.js?
Has anyone been able to add cssblocks to a NEXT 7 project? I'm curious about it but not quite sure about how to start.
I guess an example can be made by the community, we won't be adding it as part of the core at this point.
Perhaps this is my naivety with this setup, but could one hypothetically set this up using:
I'm probably overlooking something here and I haven't tried this yet.
@Jaace @timneutkens
Can i do this?
@omeraplak definitely 馃憤
I have been looking into this. Currently it looks like this may be harder to implement than it looks.
A few observations:
After trying for a good hour, I did not get this to work. Integration may require substantial work and possible updates to the css-blocks repository.
I believe the right package is https://www.npmjs.com/package/@css-blocks/core, but it still only has 170 downloads.
Going to close this as @timer pointed out the package is not really in use and this has been open / labeled for 1,5 year without progress.
Perhaps one of the core maintainers of @css-blocks would be interested in adding an example.
@chriseppstein What is the timeline for css-blocks? any interest in this? It would certainly promote interest.
Most helpful comment
@Jaace @timneutkens
Can i do this?