Coder Social home page Coder Social logo

Comments (4)

justin808 avatar justin808 commented on May 26, 2024

Thanks for the kind words @mohanzhang. If you know anybody interested in working with a cool, 100% remote team, please send them my way! We're on the beach in Maui and you've got a picture of windsurfer!

Anyway, regarding the hot reload, there's a known issue in that dependencies of the top level used to not be picked up, and that was supposed to change soon. I sometimes use a shell command to touch one of the top level sass files. By top level, I mean one of the files directly picked up by webpack.

However, if you touch the mainSass, that should get picked up.

I've got instructions on debugging this in the README.md. Did you try those?

from bootstrap-sass-loader.

mohanzhang avatar mohanzhang commented on May 26, 2024

(No shaka emoji, unfortunately --- I will settle for 🏄)

So I think I am experiencing a slightly worse problem than dependencies of the top level not being picked up; namely, it's that the top-level dependencies themselves are not being picked up. Like, I am hitting save on mainSass and touching mainSass and doing all sorts of things to it, but webpack-dev-server just sits there motionless. If I hit save or touch a js file for instance, that gets picked up just fine.

(EDIT)

I left the above text up there in case someone else finds this and what I describe above is what you're experiencing. As I was writing that, it occurred to me to check what my version of sass-loader was (inspired by @justin808's comment that implied that there are known issues with sass-loader at the moment that are supposed to get fixed soon). It turns out I was on 1.0.4, which was the latest version just 20 days ago. Since then, 2.0.1 came out 9 days ago. Updating sass-loader to the latest version fixed everything, and now hot reloading works again!

All told, it looks like bootstrap-sass-loader was just an innocent bystander to this problem, and was not at fault at all. But at least I got to fantasize about throwing sick moves on the north shore of Maui while I tried to figure it out! (seriously, ask @justin808 about his backyard) Thanks Justin ;) haha!

from bootstrap-sass-loader.

justin808 avatar justin808 commented on May 26, 2024

@mohanzhang I hope I see you my pad http://www.sugarranchmaui.com some day! Regarding your issue, should we add something to the readme? Any other changes?

from bootstrap-sass-loader.

mohanzhang avatar mohanzhang commented on May 26, 2024

@justin808 I'm actually not sure how I got into the bad state, so I don't know if there's anything I could say to prevent someone else from having the same problem.

If anyone out there sees this and also ran into this problem, mind posting how you got here? And if upgrading sass-loader was the solution for you as well?

from bootstrap-sass-loader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.