Coder Social home page Coder Social logo

Comments (8)

sindresorhus avatar sindresorhus commented on September 28, 2024

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.

benfrain avatar benfrain commented on September 28, 2024

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.

sindresorhus avatar sindresorhus commented on September 28, 2024

You require it: https://github.com/gruntjs/grunt-contrib-sass#require

from grunt-contrib-sass.

benfrain avatar benfrain commented on September 28, 2024

Ah. Brilliant. Sorry, I totally missed that. Thanks very much.

from grunt-contrib-sass.

EvanAgee avatar EvanAgee commented on September 28, 2024

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.

DD-UX avatar DD-UX commented on September 28, 2024

@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.

DD-UX avatar DD-UX commented on September 28, 2024

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.

josephbergdoll avatar josephbergdoll commented on September 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.