Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = function (grunt) {
- grunt.loadNpmTasks('grunt-contrib-cssmin');
- grunt.loadNpmTasks('grunt-contrib-watch');
- grunt.initConfig({
- pkg: grunt.file.readJSON('package.json'),
- cssmin: {
- options: {
- mergeIntoShorthands: false,
- roundingPrecision: -1
- },
- target: {
- files: {
- 'css/all.css': [
- 'css/colors.css',
- 'css/variable.css',
- 'css/style.css',
- 'css/another-file.css',
- 'css/styles-for-some-other-package.css',
- ]
- }
- }
- },
- watch: {
- scripts: {
- files: ['css/*.css'],
- tasks: ['cssmin'],
- options: {
- spawn: false,
- },
- },
- },
- });
- grunt.registerTask('default', ['cssmin', 'watch']);
- }
Add Comment
Please, Sign In to add comment