Skip to content

Instantly share code, notes, and snippets.

@levchenkod
Forked from jshawl/Gruntfile.js
Created November 18, 2017 10:06
Show Gist options
  • Save levchenkod/bcb64fede88e11e3040dd9ab613d8ca5 to your computer and use it in GitHub Desktop.
Save levchenkod/bcb64fede88e11e3040dd9ab613d8ca5 to your computer and use it in GitHub Desktop.

Revisions

  1. @jshawl jshawl renamed this gist Aug 13, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @jshawl jshawl renamed this gist Aug 13, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. @jshawl jshawl created this gist Aug 13, 2013.
    32 changes: 32 additions & 0 deletions Gruntfile.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    module.exports = function(grunt) {
    grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    sass: {
    dist: {
    options:{
    style:'compressed'
    },
    files: {
    'css/style.css' : 'scss/style.scss'
    }
    }
    },
    autoprefixer:{
    dist:{
    files:{
    'css/style.css':'css/style.css'
    }
    }
    },
    watch: {
    css: {
    files: 'scss/*.scss',
    tasks: ['sass', 'autoprefixer']
    }
    }
    });
    grunt.loadNpmTasks('grunt-contrib-sass');
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-autoprefixer');
    grunt.registerTask('default',['watch']);
    }
    10 changes: 10 additions & 0 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    {
    "name": "jshawl.com",
    "version": "0.1.0",
    "devDependencies": {
    "grunt": "~0.4.1",
    "grunt-contrib-sass": "~0.3.0",
    "grunt-contrib-watch": "~0.4.4",
    "grunt-autoprefixer": "~0.2.20130806"
    }
    }