Forums

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

Home Forums JavaScript Why does not my gruntfile compile scss to css?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #253030
    Ayala
    Participant

    My gruntfile doesn’t work good. I want to compile all my scss files to css. It noticed the changes, even a new scss file, but it doesn’t compile them to css.

    Grunt watch writes this:

    Completed in 0.513s at Wed Mar 22 2017 10:34:44 GMT+0100 (CET) - Waiting...
    >> File "sites/all/themes/tarsoly/sass/tarsoly.styles.scss" changed.
    Running "sass:dev" (sass) task
    
    Done.
    

    This is my gruntfile:


    module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), connect: { uses_defaults: {} }, sass: { dev: { options: { sourceMap: true }, files: [{ expand: true, cwd: 'sites/all/themes/tarsoly/', src: ['sass/*.scss'], dest: 'css/', extDot: 'last' // Extensions in filenames begin after this dot }] } }, watch: { css: { files: 'sites/all/themes/tarsoly/**/*.scss', tasks: [ 'sass:dev' ], options: { livereload: true } } } }); // Load Grunt plugins // grunt.loadNpmTasks(''); // Default task(s). grunt.registerTask('default', []); // Load Grunt plugins grunt.loadNpmTasks('grunt-contrib-connect'); grunt.loadNpmTasks('grunt-sass'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-sass-globbing'); };

    What is missing?

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.