Sass watch is detecting changes but not compiling

2019-04-26 03:08发布

When I run sass --watch app.sass:app.css terminal shows that changes have been detected to sass but won't compile to css. I am using Bourbon so all my .scss and .sass files are imported via mixins.

ex.

 >>> Sass is watching for changes. Press Ctrl-C to stop.
 >>> Change detected to: css/2-modules/top-nav.scss

3条回答
等我变得足够好
2楼-- · 2019-04-26 03:31

check for the Config.rb file in your folder. without it you have to Ctr c every time and pass this command sass --watch scssname:cssname

then You can find your code in css.

查看更多
兄弟一词,经得起流年.
3楼-- · 2019-04-26 03:41

Make sure the file you are saving with an _filename.scss has been properly imported into the mainfile.scss. if you have not imported the _filename.scss it will detect a change but not compile.

查看更多
看我几分像从前
4楼-- · 2019-04-26 03:49

Are you sure all of your partials are being imported into app.scss? I had the same issue, only to realize the partial file I was modifying (_custom.scss) wasn't actually being imported by the main.scss.

查看更多
登录 后发表回答