Implemented css minifying

This commit is contained in:
BorisLevitskiy
2015-04-09 16:15:32 +03:00
parent 253d90047c
commit b854ebe341
2 changed files with 15 additions and 1 deletions

View File

@@ -11,13 +11,26 @@ module.exports = function(grunt) {
src: 'src/**/*.js',
dest: 'build/bitwisecmd.min.js'
}
},
cssmin: {
options: {
shorthandCompacting: false,
roundingPrecision: -1
},
target: {
files: {
'build/css/styles.css': ['src/css/styles.css']
}
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
// Default task(s).
grunt.registerTask('default', ['uglify']);
grunt.registerTask('default', ['uglify','cssmin']);
};

View File

@@ -17,6 +17,7 @@
},
"homepage": "https://github.com/BorysLevytskyi/BitwiseCmd",
"devDependencies": {
"grunt-contrib-cssmin": "^0.12.2",
"grunt-contrib-uglify": "^0.9.1"
}
}