Forked from mediaformat/phpstorm-node_sass-config.txt
Created
December 3, 2022 10:50
-
-
Save gartes/de85d48dabc4e56b60f6f0a4e6d76be5 to your computer and use it in GitHub Desktop.
node-sass with sourcemap in phpstorm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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