Closed jekuno closed 9 years ago
hmmm... You can only access sass mixins from gem installed assets from within the rails asset pipeline/sprockets ecosystem.
You'd have to @import 'foundation/components/panels'
in your gulp sass file instead of the sprockets manifest file.
Your best bet is to avoid the using the asset pipeline (which gem installed assets do), and just use foundation manually by downloading it and adding `gulp/assets/stylesheets/foundation'
I used
gulp-rails-pipeline
to ditch the Rails Asset pipeline of an existing project. Now when runninggulp build
I get the following error:gulp-notify: [Compile Error] Error in plugin 'gulp-sass'
Message: no mixin named panel
The mixin
panel
is part of the gemfoundation-rails
. It is defined in the filefoundation/components/panels
which I import in/app/assets/stylesheets/application.css.scss
:My file
/gulp/assets/stylesheets/framework_and_overrides.scss
basically is:How can I solve the gulp-sass error? What is the correct way to access mixins which are provided by a Rails gem from my scss files which are managed by gulp? Thanks! :)