Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !2114
An error occurred while fetching the assigned milestone of the selected merge_request.

update readme with fix from #1939

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/kellyrmilligan/readmenodesass into master 8 years ago
  • Overview 21
  • Commits 10
  • Pipelines 0
  • Changes 1

Created by: kellyrmilligan

updating readme with comment from #1939 (closed) . works with latest node-sass@4.5.2

:tada:

Loading
Loading

Activity


  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: Timer

    Hey @kellyrmilligan, thanks for this PR!

    Do you happen to know about that comment I mentioned above?

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: cr101

    @kellyrmilligan Unfortunately, it doesn't work on Windows

    Error: ENOENT: no such file or directory, lstat 'C:\wf\my-app\src***.scss'

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: kellyrmilligan

    What if you tried app\src\**\*.scss ?

    Update, I did see in a doc somewhere even on windows for globbing you should use forward slashes as well.

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: kellyrmilligan

    i'm looking more into the code now. there are a few levels of abstraction around how the globbing works, so I may change this back to the original fix and explain in this PR why it works.

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: kellyrmilligan

    looks like the recommended solution from the issue won't let you watch files in subdirectories. the glob pattern in the cli gets expanded, and then node-sass doesn't treat it as a directory. on the other hand, if you use src/*/**.scss, it doesn't work as you would expect either. from what I am seeing, the way they want it to be used is src/. this results in the sass-graph lib picking up all the correct files. The cli assumes you want all extensions, and its not configurable.

    After trying out a few different ways of calling the cli, on my setup at least, the looping happens when you change a file that is included in a lot of files, like say a _settings.scss file or something.

    I switched over to node-sass-chokidar and this issue just went away. I think longer term the node-sass cli should let you configure the extensions or use proper globbing patterns, as ATM its kind of broken IMO.

    switching to node-sass-chokidar fixed this issue fully for me, so not sure what to do with this PR unless we want to switch the recommendation for sass to that package instead.

    thoughts @Timer and anyone else?

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: Timer

    Let's just switch the docs to node-sass-chokidar primarily.

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: gaearon

    Would it work if you quoted the glob? node-sass "src/**/*.scss" Then shell wouldn’t expand it. (I don’t know if it helps or not.)

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: kellyrmilligan

    @gaearon let me give it a shot.

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: kellyrmilligan

    nope, it takes that as the literal value and gives Error: ENOENT: no such file or directory, lstat 'src/**/*.scss'

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: kellyrmilligan

    I updated the readme again. I reverted it back to the way it was, and added a note under the step to install node-sass, about node-sass-chokidar.

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: Timer

    We already have a note to switch to it about performance, but I think we should just recommend it first and adjust both notes to say why we use it.

    I don't see a need to show docs using node-sass.

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: Timer

    Perfect! Thanks much.

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: Timer

    Just to confirm, new files aren't an issue anymore?

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: kellyrmilligan

    @Timer added note about new files back in after testing. please let me know of any other changes I just pushed an update to the notes as well.

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: Timer

    /cc @michaelwayman Figured you'd like to see this.

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: michaelwayman

    That's awesome @kellyrmilligan thanks :)

    And yep, files starting with _ do not get transpiled.

    I think the not recognizing new files is a known bug with node-sass. Since you already have the "Why node-sass-chokidar?" section, if you want to add that nsc fixes it that would be super :thumbsup: lol

    <3 this PR BTW :)

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: kellyrmilligan

    @michaelwayman done!

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: Iron-Ham

    @michaelwayman :clap: :clap: :clap:

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Created by: Timer

    This is some great work, guys! Thanks so much.

  • Administrator
    Administrator @root · 8 years ago
    Author Contributor

    Merged by: Timer at 2017-05-12 04:00:46 UTC

  • Administrator
    Administrator @root · 7 years ago
    Author Contributor

    Created by: FDiskas

    I suggest to use scripts like so

        "prebuild": "node-sass-chokidar src/ -o src/",
        "prestart": "npm run prebuild && node-sass-chokidar src/ -o src/ --watch --recursive"
Please register or sign in to reply
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
1
1 participant
Administrator
Reference:
Source branch: github/fork/kellyrmilligan/readmenodesass

Menu

Explore Projects Groups Snippets