Comments (5)
From next docs - "Warning: When you define a custom PostCSS configuration file, Next.js completely disables the default behavior" (auto prefixer and etc.).
Looks like we need to add the default postcss stuff to our custom config
Next.js Customizing PostCSS plugins
from clutch.
Fixed the problem on Minimal Template so any future projects won't hit this problem. If we feel the need to migrate old projects, let me know and I'll do it
from clutch.
I think this is fine. We can manually update existing projects. However, I want to make sure that our config file is exactly like the defaults provided by Next. Would be awesome if there was a way to extend instead of override. If Next.js updates this file, would be great if that flowed through somehow. This was an easy issue to miss because it doesn't fail loudly.
from clutch.
True. CSS Nesting landed in Firefox a few weeks ago so if we are happy with the browser support - https://caniuse.com/css-nesting - we could remove the file and use the next.js default since our only override is postcss-nested.
However, this would mean that our sites don't run at all in IE and a few others
from clutch.
Never mind. CSS nesting in Chrome does not support nested rules that start with '&' so the approach of deleting the file won't work because our styles generation needs that
The solution in place solves everything except the scenario you wrote about Next.js updating the file. But from their docs it looks inevitable. On the bright side, it is unlikely and easy to solve if it happens so I don't think it is worth investing too much time into it.
We can revisit if you think it is important
from clutch.
Related Issues (20)
- When duplicating a free floating instance, the duplicate instance stays in the same position HOT 1
- Updating next.js does not restart the dev server HOT 2
- Screenshot/live preview marketplace items
- LocalHost Fetch bug HOT 1
- Research server side components usage inside Clutch HOT 1
- When using a block as an img tag, setting srcSet breaks the render HOT 2
- Replace elastic cache with a self hosted Redis instance inside the cluster HOT 1
- Replace AWS docker registry with a self hosted instance inside the cluster powered by S3 HOT 1
- Code editor syntax highlighting issue
- Research bun.sh viability HOT 1
- When using dangerouslySetInnerHTML images do not render in Clutch
- Bundle dedicated Node binary in the desktop app instead of using the one shipped with Electron
- Default Theme font is not being applied correctly HOT 1
- Research Next.js hot reload performance HOT 3
- Research possible lighthouse metrics while creating pages
- Research possible lighthouse metrics on exported projects
- Hovering an instance on canvas not working
- Props and Vars are not selectable HOT 1
- Run `pnpm lint` before commits
- Theming not applied to components exported on the marketplace HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clutch.