Gruntfile.js in ustyle-1.7.0 vs Gruntfile.js in ustyle-1.8.0
- old
+ new
@@ -1,9 +1,7 @@
-var autoprefixer = require("autoprefixer-core");
-
module.exports = function(grunt) {
-
+ grunt.loadNpmTasks("grunt-postcss");
require("load-grunt-tasks")(grunt);
grunt.loadTasks("grunt/tasks");
grunt.initConfig({
shell: {
@@ -16,11 +14,14 @@
src: ["package.json", "lib/ustyle/version.rb"]
}
},
postcss: {
options: {
+ map: false,
processors: [
- autoprefixer({ browsers: ["last 5 versions", "Firefox 22", "Explorer 8", "> 1%", "Opera 12.1"] }).postcss
+ require("autoprefixer")({
+ browsers: ["last 5 versions", "Firefox ESR", "not Explorer < 9", "> 1%", "Opera > 18"]
+ })
]
},
dist: { src: ["docs/**/*.css", "dist/**/*.css"] }
},
watch: {