6

So CRA(create-react-app) v2 rolled out.

> started new project with my own boilerplate
> little did I know, I am accidentally doing int CRA2
> gulp-sass fails.
> Internal screaming.
> Bulma React Components fails to compile due to one type, IDK how they missed in previous build.
> fixed by removind browserlist array from package.json
> Guess what, it comes back as you close it.
> So, now I've to keep it open while gulp-sass is running, which is almost always, in order to compile.

Thank you and Fuck you facebook

Comments
  • 4
    Best review
    Such unhappy
    Very plus
  • 2
    CRA 2 has built in support for Sass. Install node-sass, and import .scss files directly.

    If that's an option.
  • 1
    @meyhem yeah I read that, but that breaks my one gulp task i.e. to minify css, idk if node-sass does that, plus I need to do a dummy project to understand CRA 2 entirely
  • 1
    @nothappy Not sure about minification, try doing production build. If they are not, eject and customize webpack config.
  • 1
    @meyhem Will need to look into that, still learning jest, I know it's probably not required, but still anyways
Add Comment