节点萨斯要求不外乎$FileName$ $FileNameWithoutExtension$.css
测试和WebStorm 11
工作程序参数需要的完整路径的bin/EXE不过,即使它全局可用。在我的情况下,/usr/local/bin/node-sass
,在你的情况下,它将通往node-sass.cmd
的路径。
节点青菜CLI使用
node-sass [options] <input> [output] cat <input> | node-sass > output
节点青菜CLI参数
-w, --watch Watch a directory or file
-r, --recursive Recursively watch directories or files
-o, --output Output directory
-x, --omit-source-map-url Omit source map URL comment from output
-i, --indented-syntax Treat data from stdin as sass code (versus scss)
-q, --quiet Suppress log output except on error
-v, --version Prints version info
--output-style CSS output style (nested | expanded | compact | compressed)
--indent-type Indent type for output CSS (space | tab)
--indent-width Indent width; number of spaces or tabs (maximum value: 10)
--linefeed Linefeed style (cr | crlf | lf | lfcr)
--source-comments Include debug info in output
--source-map Emit source map
--source-map-contents Embed include contents in map
--source-map-embed Embed sourceMappingUrl as data URI
--source-map-root Base path, will be emitted in source-map as is
--include-path Path to look for imported files
--follow Follow symlinked directories
--precision The amount of precision allowed in decimal numbers
--importer Path to .js file containing custom importer
--functions Path to .js file containing custom functions
--help Print usage info
而不是** **刚刚'节点sass'作为一个程序,你应该提供**完整路径**为'节点 - sass.cmd'(或任何正确的可执行文件名称)。您在Windows平台上犯的错误是:当您在终端/控制台中运行'node-sass'时,DOS(cmd.exe)*自动*将其转换为'node-sass.cmd';但是当IDE使用相同的参数创建进程时,Windows API需要EXACT文件名 - 它不会为您执行此类“转换”。 – LazyOne
我使用npm安装了它。不知道在哪里找到node-sass指向的路径。 – EternallyCurious
在C:\'驱动器上搜索'node-sass'可能是?它应该在'C:\ Users \ USERNAME \ AppData \ Roaming'文件夹中 – LazyOne