私の問題は、 Django-Bower + Foundation 5 + SASSと同じコンテキストにあります。foundation
からscss
にコンパイルしようとしていますcss
。問題は、次のような問題が発生していることですRuntimeError
。
/home/hakim/.gem/ruby/2.4.0/gems/sass-3.4.23/lib/sass/exec/sass_scss.rb:287:in `watch_or_update': File /home/hakim/github/myquotes/static/quotes/app.css doesn't exist. (RuntimeError)
Did you mean: sass --update /home/hakim/github/myquotes/static/quotes/app.scss:/home/hakim/github/myquotes/static/quotes/app.css
from /home/hakim/.gem/ruby/2.4.0/gems/sass-3.4.23/lib/sass/exec/sass_scss.rb:51:in `process_result'
from /home/hakim/.gem/ruby/2.4.0/gems/sass-3.4.23/lib/sass/exec/base.rb:52:in `parse'
from /home/hakim/.gem/ruby/2.4.0/gems/sass-3.4.23/lib/sass/exec/base.rb:19:in `parse!'
from /home/hakim/.gem/ruby/2.4.0/gems/sass-3.4.23/bin/sass:13:in `<top (required)>'
from /home/hakim/.gem/ruby/2.4.0/bin/sass:22:in `load'
from /home/hakim/.gem/ruby/2.4.0/bin/sass:22:in `<main>'
静的ファイルは に保存されos.path.join(BASE_DIR, 'static')
ます。
my の関連部分は次のsetting.py
とおりです。
# Manage static files with pipeline
STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
# Where to generate CSS from SCSS
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
# Specify SCSS files to be compiled to CSS
PIPELINE = {
'STYLESHEETS': {
'librairies': {
'source_filenames': (
'quotes/app.scss',
),
'output_filename': 'quotes/app.css',
},
},
'COMPILERS': (
'pipeline.compilers.sass.SASSCompiler',
),
'SASS_ARGUMENTS': "--trace --update -I '%s'" % os.path.join(
BOWER_COMPONENTS_ROOT,
'bower_components',
'foundation',
'scss'
),
}
app.scss
のみが含まれます@import 'foundation';
。