You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from flask.ext.assets import (
Environment,
Bundle,
)
class Assets (Environment):
def __init__ (self, app):
super(Assets, self).__init__(app)
if 'ASSETS_DIR' in app.config:
self.directory = app.config['ASSETS_DIR']
if 'ASSETS_URL' in app.config:
self.url = app.config['ASSETS_URL']
if 'SASS_STYLE' in app.config:
self.config['sass_style'] = app.config['SASS_STYLE']
if 'UGLIFYJS_EXTRA_ARGS' in app.config:
self.config['UGLIFYJS_EXTRA_ARGS'] = \
app.config['UGLIFYJS_EXTRA_ARGS']
self.register('theme.css', Bundle(
'scss/theme.scss',
filters='scss',
output='theme.css',
))
self.append_path('src/assets')
src/assets/scss/theme.scss
@import 'btn-o';
src/assets/scss/_btn-o.scss exists and have 0777 access right
but when i run
./bin/spf_dev assets -v build
i have error
Building bundle: theme.css
Failed, error was: sass: subprocess had error: stderr=Error: File to import not found or unreadable: ./btn-o. on line 1 of standard input
Use --trace for backtrace. , stdout=, returncode=65
At this point the working directory should be set to src/assets/scss/. I would then expect sass to find the include file in the same directory as the theme.scss file itself. Maybe by calling the command being executed at this point manually, you can figure out why not.
i have flask application with buildout in src folder
./bin/pip show flask | grep Version
Version: 0.10.1
./bin/pip show flask-assets | grep Version
Version: 0.10
src/setup.py have following strings
src/spf/manage.py
src/spf/env/dev.py
src/spf/init.py
src/spf/assets.py
src/assets/scss/theme.scss
src/assets/scss/_btn-o.scss exists and have 0777 access right
but when i run
./bin/spf_dev assets -v build
i have error
i have read https://github.com/miracle2k/webassets/blob/master/src/webassets/filter/sass.py#L36
but i don't understand
why sass don't use src/assets for resolve relative path in @import directive from stdin?
self.append_path('src/assets')
The text was updated successfully, but these errors were encountered: