Comments (8)
You can just install it. Not sure what that has to do with this task. We're just shelling out to Sass. Everything supported in Sass is supported here.
from grunt-contrib-sass.
No, doesn't work as its not part of 'normal' Sass. It's an additional install that usually requires 'require "sass-globbing"' in the Compass config.rb. Without that (eg if using Sass without Compass) I'm unsure how to include it in the Grunt options??
from grunt-contrib-sass.
You require
it: https://github.com/gruntjs/grunt-contrib-sass#require
from grunt-contrib-sass.
Ah. Brilliant. Sorry, I totally missed that. Thanks very much.
from grunt-contrib-sass.
Thanks for the info, but even after installing the gem for sass-globbing and using 'require: 'sass-globbing'' I'm getting this error when running grunt watch. Any help would be GREATLY appreciated!
LoadError: cannot load such file -- sass-globbing
from grunt-contrib-sass.
@sindresorhus I'm experiencing the same issue as @EvanAgee. Here is my code:
sass: {
build: {
files: [{
expand: true,
cwd: 'src/sass',
src: 'main.scss',
dest: '<%= build_dir %>/assets/',
ext: '.css'
}],
options: {
style: 'expanded',
noCache: true,
require: 'sass_globbing'
}
}
},
sass_globbing: {
your_target: {
files: {
'src/_app-files.scss': 'src/app/**/*.scss',
'src/_shared-components.scss': 'src/sass/shared-components/**/*.scss',
'src/_mixins.scss': 'src/sass/mixins/**/*.scss',
'src/_functions.scss': 'src/sass/functions/**/*.scss'
},
options: {
useSingleQuotes: false
}
}
}
Could you please give me some heads up please? I would really appreciate it 😄
from grunt-contrib-sass.
Nevermind, solved the issue by fixing the routes where save the mapped files and adding sass_globbing
to grunt.registerTask('build', [])
.
Thanks anyway 👍
from grunt-contrib-sass.
@DD-UX how did you end up getting this working? This is with the Sass-Globbing gem, correct?
from grunt-contrib-sass.
Related Issues (20)
- Error finding compass imports, when using --compass with --check HOT 1
- On $ grunt build I am getting: Warning: Running "sass:server" (sass) task
- Error on named CSS grid line naming HOT 1
- loadPath doesn't find node_modules package HOT 1
- Variable not respected
- Could not find an option named "load-path" HOT 1
- Support for Dart-Sass HOT 5
- New release HOT 3
- Update for newer cross-spawn HOT 1
- @supports doesn't compile from SASS to CSS HOT 1
- Could not find an option named "lineNumbers"
- lib/check.js doesn't support compass arg
- Sass Sourcemap
- How to change css Sourcemap in grunt sass HOT 1
- Missing feature: Combining output to a single file, and keep source maps true. HOT 1
- You need to have Ruby and Sass installed and in your PATH for this taskto work HOT 6
- strange error starting grunt task
- Option for style uses the wrong key in the documentation
- edit gem install sass in grunt-contrib-sass in grunt web page
- Generated sourcemap css comment produces an issue with Safari
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 grunt-contrib-sass.