I have a Django project that I would like to integrate with Bulma/Sass using the django-sass-processor framework. Upon initial file creation I am able to compile .scss
to .css
, but when I try: sass website.scss --watch
I get ERROR: --watch is not allowed when printing to stdout.
I also tried: sass --watch website.scss:/static/website/css/website.css
and I get Sass is watching for changes. Press Ctrl-C to stop. Error reading ../../../../../../static: Creation failed.
Sass is watching for changes. Press Ctrl-C to stop. Error reading ../../../../../../static: Creation failed.
Is the issue in creating the new .css
file due to permissions?
root
-> website
-> static
-> css
- website.css
- urls.py
- views.py
- website.scss `
settings.py
STATIC_ROOT = '/static'
SASS_PROCESSOR_ROOT = 'website/static'`
在使用sass --watch website.scss:/static/website/css/website.css
重新创建我的初始.scss
和.css
文件之后,Sass能够创建目录/文件并根据需要编译文件。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.