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

Wht is grunt sass running for js file changes? #12

Closed
niyazpk opened this issue Dec 11, 2012 · 1 comment
Closed

Wht is grunt sass running for js file changes? #12

niyazpk opened this issue Dec 11, 2012 · 1 comment

Comments

@niyazpk
Copy link

niyazpk commented Dec 11, 2012

Here is what is happening:

Capture

Here is the sass part of my grunt file:

sass: {
    dist: {
      files: {
        'html/css/catalog.css': 'html/sass/catalog.scss',
        'html/css/detail.css': 'html/sass/detail.scss',
        'html/css/style.css': 'html/sass/style.scss'
      }
    }
  },

Is this related to this issue: #10 ?

Anyway since I am modifying one js file, and I have specified to sass compile only the given files, why is the task even starting up?

This is painful because even for no files to compile the sass task takes around 5 second to complete (on windows) and this means that I have this painful waiting period before I can test my changes. :(

@shama
Copy link
Member

shama commented Dec 11, 2012

What does your watch config look like? You can make your watch more fine grained:

watch: {
  js: {
    files: ['html/js/*.js'],
    tasks: ['jshint', 'mocha']
  },
  sass: {
    files: ['html/sass/*.scss'],
    tasks: ['sass']
  }
}

If you have a solution for gruntjs/grunt-contrib-watch#14 we'd love to hear it!

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

3 participants