next.js icon indicating copy to clipboard operation
next.js copied to clipboard

Question: Scss hot reload support V4

Open aviramga opened this issue 9 years ago • 6 comments

Hi Everyone,

I know this issue has been discussed a lot in this forum but I get understand what is the bottom line in any of the other posts. I'm just trying to know what is the plan with this issue in the near future.

We are planning to migrate our systems (hopefully to nextjs) and we heavily relay on scoped scss. Do you think the hot reload issue will be solved in V4?

If not what is the best alternative for scoped non inline css (we want a clear .js .css separation) that is supported with hot reload?

Thanks!

aviramga avatar Oct 09 '17 11:10 aviramga

create-react-app eject and tweak?

shelldandy avatar Oct 09 '17 19:10 shelldandy

there's also this: https://github.com/zeit/next.js/tree/master/examples/with-external-scoped-css

shelldandy avatar Oct 09 '17 19:10 shelldandy

@mike3run thanks! I already played with with-external-scoped-css example. You can get SCSS support there but no hot reload on dev env which is a big issue for the dev experience. Other SCSS solutions only allow global scoped styling which is also an issue.

create-react-app is an option but I was hoping to save the configuration overhead of webpack and bable that nextjs offers

aviramga avatar Oct 10 '17 07:10 aviramga

Try to fix this problem also

adisak1618 avatar Nov 15 '17 11:11 adisak1618

I've implemented external scss with hot-reloading here: https://github.com/zeit/next.js/pull/3451

sheerun avatar Dec 13 '17 16:12 sheerun

Fixed with next-sass

timneutkens avatar Mar 16 '18 12:03 timneutkens