Search code examples
sassphpstorm

PhpStorm: SCSS File Watcher - how to disable source maps?


I use SCSS file watcher in PhpStorm 9 and would like to disable source maps generation (.map files). How to configure a watcher for this?


Solution

  • if you've followed jetbrain's tutorial on how to work with sass/scss, you probably installed ruby-sass (there's also node-sass). any way phpstorm lets you define arguments when you setup a new watcher (settings->tools->file-watchers).

    add the --no-source-map flag and it'll prevent sourcemap generation.

    enter image description here