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

Have to resave scss files twice in order for update to trigger #253

Open
mcclaskiem opened this issue May 5, 2016 · 2 comments
Open

Have to resave scss files twice in order for update to trigger #253

mcclaskiem opened this issue May 5, 2016 · 2 comments

Comments

@mcclaskiem
Copy link

I recently upgrade my whole grunt workflow to ^1.0.0 and after doing so I know have to save a scss partial twice before it properly compiles and trigger live reload.

I am on version 1.1.1 and I have compass version 1.0.3

  "devDependencies": {
    "grunt": "^1.0.0",
    "grunt-contrib-uglify": "^1.0.0",
    "grunt-contrib-compass": "^1.0.0",
    "grunt-contrib-imagemin": "^1.0.0",
    "grunt-concurrent": "^2.0.0",
    "grunt-contrib-jshint": "^1.0.0",
    "grunt-svgmin": "^3.0.0",
    "grunt-contrib-cssmin": "^1.0.0",
    "grunt-contrib-watch": "~1.0.0",
    "connect-livereload": "^0.5.0",
    "grunt-contrib-connect": "^1.0.0",
    "grunt-newer": "^1.1.0",
    "grunt-contrib-htmlmin": "^1.3.0",
    "grunt-contrib-copy": "^1.0.0",
    "grunt-modernizr": "^1.0.0"
  }
compass: {                  // Task
   default: {                    // Another target
      options: {
        config: 'config.rb'
      }
   }
},
sass:{
   options:{
      livereload: false,
   },
   files: ['build/sass/**/*.scss'],
   tasks: ['compass'],
},

Please let me know if you need any more information to shed some light on the issue.

I did test this on an old project with pre 1.0.0 dev dependencies and it works as expected.

@mcclaskiem mcclaskiem changed the title Have to resave scss files twice in order to trigger update Have to resave scss files twice in order for update to trigger May 5, 2016
@foxdog05000
Copy link

+1

@foxdog05000
Copy link

I solved this problem by modifying the compass task in the watch object configuration of the gruntfile. I'm use Grunt in version 1.0.1 with Grunt-contrib-compass in version 1.1.1. Compass in version 1.0.3.

Before

  compass: {
        files: ['<%= yeoman.app %>/views/{,*/}*.{scss,sass}'],
        tasks: ['compass:server', 'postcss:server']
      },

After

  compass: {
        files: ['<%= yeoman.app %>/views/**/*.{scss,sass}'],
        tasks: ['compass:server', 'postcss:server']
      },

{,*/} This is my problem. And solved on replace by **.

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

2 participants