Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gartes/de85d48dabc4e56b60f6f0a4e6d76be5 to your computer and use it in GitHub Desktop.
Save gartes/de85d48dabc4e56b60f6f0a4e6d76be5 to your computer and use it in GitHub Desktop.
node-sass with sourcemap in phpstorm
Getting node-sass to output a sourcemap took a bit of trial & error
Mostly because phpstorm does not allow for the same colon syntax that most sources reference,
specifically the Output paths to reference only took 1 argument
---
Add File Watcher SCSS in settings
Watcher Settings
Program :
C:\Users\%username%\AppData\Roaming\npm\node-sass.cmd
Arguments :
--no-cache --update --source-map=$FileNameWithoutExtension$.css.map $FileName$ $FileNameWithoutExtension$.css
Output paths to refresh :
$FileNameWithoutExtension$.css
Working directory :
$FileDir$
Create output file from stdout :
[] (unchecked)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment