Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Using Compass and Autoprefixer in Grunt Reply To: Using Compass and Autoprefixer in Grunt

#171473
Scott Lyttle
Participant

Answered my own question. Appears if you do not specify an output location for Autoprefixer, it will just use the input location and overwrite the files. Here’s the updated section of the gruntfile if it’s of help t anyone:

autoprefixer: {
    css: {
        src: 'style/build/**.css',
    }
},
watch: {
    options: {
        livereload: true,
    },
    css: {
        files: ['style/source/**/*.scss'],
        tasks: ['compass', 'autoprefixer:css'],
        options: {
            spawn: false,
        }
    }
}