Skip to content
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

lib/check.js doesn't support compass arg #245

Open
much-rebel opened this issue Aug 29, 2018 · 0 comments
Open

lib/check.js doesn't support compass arg #245

much-rebel opened this issue Aug 29, 2018 · 0 comments

Comments

@much-rebel
Copy link

much-rebel commented Aug 29, 2018

This makes impossible to use sass.options.check=true if project uses compass.

If any of sass files will include like @import "compass/css3" it will fail with File to import not found or unreadable: compass/css3.

Applies to all versions of the package, all OSes.

Grunt sass config:

sass:

      options:
        check: true
        sourcemap: 'auto'
        compass: true
        quiet: true
        style: 'compressed'
        cacheLocation: '.sass-cache'

      website:
        options:
          loadPath:
            [
              '<%= paths.website.sass %>'
              'assets/3/lib'
            ]
        files:
          [
            expand:  yes
            cwd:     '<%= paths.website.sass %>'
            src:     [ '{,**/}*.scss', '{,**/}*.sass' ]
            dest:    '<%= paths.website.css %>'
            ext:     '.css'
          ]

Sass file causing problems:

@import compass/css3

// Evething is limited to this scope
.header
...

From verbose you can see it doesn't add compass arg to command:

/var/www/html# grunt --verbose sass
...
Checking file assets/3/sass/search/desktop.scss - failed.
Command: sass --check assets/3/sass/bootstrap.sass --load-path=assets/3/sass/ --load-path=assets/3/lib
...

Same command launched manually with compass arg gives no error:

/var/www/html# sass --compass --check assets/3/sass/bootstrap.sass --load-path=assets/3/sass/ --load-path=assets/3/lib
/var/www/html# 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant