diff --git a/.gitignore b/.gitignore index 460916ba8..0b09c012c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /_site/ *.DS_Store +node_modules diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 000000000..5953168a1 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,47 @@ +module.exports = function(grunt) { + // Project configuration + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + less: { + dist: { + options: { + cleancss: true, + ieCompat: true + }, + files: { + "css/all.css": "less/all.less" + } + } + }, + postcss: { + options: { + map: true, + processors: [ + require('autoprefixer')({ + browsers: ['last 2 versions', 'ie 9'] + }) + ] + }, + dist: { + src: 'css/all.css' + } + }, + watch: { + less: { + files: ['less/**/*.less'], + tasks: ['less:dist', 'postcss:dist'], + options: { + spawn: false + } + } + } + }); + + // Load plugins + grunt.loadNpmTasks('grunt-contrib-less'); + grunt.loadNpmTasks('grunt-contrib-watch'); + grunt.loadNpmTasks('grunt-postcss'); + + // Default task(s) + grunt.registerTask('default', ['less', 'postcss:dist']); +}; diff --git a/_layouts/default.html b/_layouts/default.html index 55a6527cd..391375496 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -12,10 +12,7 @@ - - - - +
-