Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SASS hot-reloading on with-external-scoped-css example #2495

Closed
1 task done
JoseMartinC opened this issue Jul 7, 2017 · 2 comments
Closed
1 task done

SASS hot-reloading on with-external-scoped-css example #2495

JoseMartinC opened this issue Jul 7, 2017 · 2 comments

Comments

@JoseMartinC
Copy link

JoseMartinC commented Jul 7, 2017

  • I have searched the issues of this repository and believe that this is not a duplicate.

Hello guys!

First things first: thanks a lot to the contributors for the framework : )

I'm contacting because I'm having hard times trying to hot-reload the .sass on this example: https://github.com/zeit/next.js/tree/v3-beta/examples/with-external-scoped-css

My goal is to have a folder per component / page, with a hot-reloaded js and scss file, using scoped css, and without adding <style dangerouslySetInnerHTML /> on every component or without using template string kind of css technology as style-jsx or styled-components.

components
├── comp1
│   ├── index.js
│   └── styles.scss
├── comp2
│   ├── index.js
│   └── styles.scss
└── comp3
    └── index.js
    └── styles.scss

So the thing is that there's a related PR mentioned in the example as a potential fix for the hot-reloading ( #823), and I was wondering if anybody has any example / tip on how the functionality added by the PR could be used to customize the hot-reloading so the changes on the sass are also detected and injected.

I have tried and tested a lot without success, including the approached on this thread, but none is fitting completely what I want to achieve, so any help would be really appreciated.

Thanks a lot in advance!!

@timneutkens
Copy link
Member

So the thing is that there's a related PR mentioned in the example as a potential fix for the hot-reloading ( #823), and I was wondering if anybody has any example / tip on how the functionality added by the PR could be used to customize the hot-reloading so the changes on the sass are also detected and injected.

this actually doesn't fix the issue you're having 😢

@timneutkens
Copy link
Member

Lets track this in #1615 and #1245

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants