Comments (5)
Hey @joostliketoast, Sprockets’ require
is not supported as it looses variables/mixins/… compared to Sass’ own @import
.
As this question pops up often, I would be open to support it, if somebody wants to contribute :)
from livingstyleguide.
@hagenburger we use @import only in the partial where the variables and such are actually being referenced. This saves us a lot of compile time and makes it possible to use things like live-reload again.
A nice article about using sprockets and @import
http://blog.teamtreehouse.com/tale-front-end-sanity-beware-sass-import
from livingstyleguide.
@hagenburger also we would also be willing to contribute :)
from livingstyleguide.
👍
I’m not using Sprockets in my main projects right now*. So I’m very happy to assist as I think it would be great to have this implemented!
* The compile time of < 2 s for a lot of Sass via a Gulp task running in parallel to Rails was good enough comparing to much more than 30 s via Sprockets. The downside: Within LSG files you can’t use the Rails helpers anymore, which is more easy to implement when embedded in Sprockets.
from livingstyleguide.
@hagenburger I made it so @scss yourfile.css.scss
now searches for the asset in sprockets.
But would you like a option parameter for this like @scss yourfile.css.scss type: sprockets
or that it always loads the file using the sprockets enviroment if Sprockets
is available?
from livingstyleguide.
Related Issues (20)
- `@javascript-before http://example.com/js.js` syntax is not working HOT 3
- Cannot use in combination with sass-json-vars HOT 2
- Make code snippets collapsed blocks that could be expanded HOT 2
- Header tags off-by-one error, and class-prefix issues
- Rails 5 deprecation warning (another one) HOT 4
- @use is broken? (ruby 2.3.4 and rails 5) HOT 4
- change rails route? HOT 1
- ActiveSupport::VERSION not found when using Markdown in *.lsg file HOT 6
- Integration with Sprockets v4 (currently in beta5) HOT 1
- Cannot Render Ruby on Rails Partials HOT 7
- Double rendering
- Broken link on homepage HOT 2
- How to migrate an old project .lsg HOT 3
- Run website (beginner needs help) HOT 3
- .lsg Files Using CRLF Line Endings Don't Parse Correctly HOT 1
- Sass gem is deprecated HOT 1
- 2.1.0 breaks when you don't have sassc-rails installed HOT 1
- ActionView::Template::Error (wrong number of arguments (given 2, expected 0..1) HOT 5
- Site redirecting forever
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from livingstyleguide.