文件监视程序:“在编译目录时必须指定输出目录" [英] File watcher: "An output directory must be specified when compiling a directory"

查看:835
本文介绍了文件监视程序:“在编译目录时必须指定输出目录"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

cmd.exe/D/C调用C:\ Users \ sebas \ AppData \ Roaming \ npm \ node-sass.cmd style.scss:style.css 编译目录时必须指定输出目录

我希望文件监视程序监视的scss文件放在我项目的根目录下.

观看错误出现: gif_link

如何解决此错误?

解决方案

如果您希望在与原始文件相同的文件夹中生成.css文件,请尝试以下设置:

请注意从stdout创建输出文件选项-必须启用该文件,因为除非通过-o选项,否则 node-sass 会将CSS写入CSS到stdout./p>

如果要将生成的文件放在单独的文件夹中,请使用-o选项:

cmd.exe /D /C call C:\Users\sebas\AppData\Roaming\npm\node-sass.cmd style.scss:style.css An output directory must be specified when compiling a directory

The scss file I want the file watcher to watch is placed at the root of my project.

Watch the error appear: gif_link

How do I fix this error?

解决方案

If you like the .css files to be generated in the same folder as original file, try the following settings:

Note the Create output file from stdout option - it has to be enabled, as node-sass writes CSS to stdout unless the -o option is passed.

If you like to place generated files in a separate folder, use the -o option:

这篇关于文件监视程序:“在编译目录时必须指定输出目录"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆