【发布时间】:2018-12-20 22:02:33
【问题描述】:
我有一个 Django 项目,我想使用 django-sass-processor 框架与 Bulma/Sass 集成。在初始文件创建时,我能够将.scss 编译为.css,但是当我尝试时:sass website.scss --watch 我得到ERROR: --watch is not allowed when printing to stdout.
我也试过了:sass --watch website.scss:/static/website/css/website.css 我得到了Sass is watching for changes. Press Ctrl-C to stop. Error reading ../../../../../../static: Creation failed.
创建新的.css 文件是因为权限问题吗?
root
-> website
-> static
-> css
- website.css
- urls.py
- views.py
- website.scss `
settings.py
STATIC_ROOT = '/static'
SASS_PROCESSOR_ROOT = 'website/static'`
【问题讨论】: