-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sass @import not reloaded #139
Comments
This bug is a feature of sass, not a bug of sinatra-assetpack. See #102 also. |
May be it can be solve using some Sprockets stuff. |
Here is how I solved the problem using Guard Shell (https://github.com/hawx/guard-shell). Note that it is important that your 'manifest' file is not watched, or you will end up in an infinite loop. # Workaround for https://github.com/rstacruz/sinatra-assetpack/issues/139
# Note: As of writing this, Guard-Shell gem needs file permissions loosened:
# https://github.com/hawx/guard-shell/issues/14
guard :shell do
watch (%r{^app/assets/stylesheets/(.*)/(.*)\.scss}) do |m|
# Notify me that the file has changed
puts m[0] + " has changed."
manifest = "#{ Dir.pwd }/app/assets/stylesheets/application.scss"
command = "touch #{ manifest }"
puts command # Nice to see in the terminal, Guard is a developer tool after all...
`#{ command }`
end
end |
@leebrooks0 Seems good ! This issue is not related to this gem but to our environment of development. |
@Awea 👍 Helpful solution, perhaps should be added to |
I'm using the following
application.sass
file :With the following configuration :
It work well. But when I change something in an included sass file, I need to save the
application.sass
too to get the changes.The text was updated successfully, but these errors were encountered: