You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any reason why all Styling examples use inline CSS solutions?
Are there any plans to support popular pre-processors like node-sass, PostCSS or CSS Modules?
Is there a way to preprocess and use those for universal/server rendering?
Is there a way to use postcss and add its configuration to the underlying webpack config?
Is it possible to get an idea or better yet - an example or a guide that demonstrate how precompile/preprocess those solutions using them with Next 2.0.0-beta.xx ?
Thank you so much!
Ajar
The text was updated successfully, but these errors were encountered:
I think you can just compile CSS before starting next and load the generated file using <Head /> or custom Document. Do you like to know something else ?
I stopped using sass and css files, but when I did use them I was doing what @nkzawa suggested. I made a head component that acted as a wrapper for next/head to handle easily loading defaults/globals such as a main.css stylesheet. It accepted props and children to change the page title and extend it (e.g: adding another stylesheet file to the head etc.)
Is there any reason why all Styling examples use inline CSS solutions?
Are there any plans to support popular pre-processors like node-sass, PostCSS or CSS Modules?
Is there a way to preprocess and use those for universal/server rendering?
CSS Modules is a popular solution for modular CSS (obviously...:), Many PostCSS plugins like rucksack for responsive font-size, px-to-rem and autoprefixer among others are indispensable...
Is there a way to use postcss and add its configuration to the underlying webpack config?
Is it possible to get an idea or better yet - an example or a guide that demonstrate how precompile/preprocess those solutions using them with Next 2.0.0-beta.xx ?
Thank you so much!
Ajar
The text was updated successfully, but these errors were encountered: