mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-22 12:42:44 +01:00
Implemented css minifying
This commit is contained in:
15
Gruntfile.js
15
Gruntfile.js
@@ -11,13 +11,26 @@ module.exports = function(grunt) {
|
|||||||
src: 'src/**/*.js',
|
src: 'src/**/*.js',
|
||||||
dest: 'build/bitwisecmd.min.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.
|
// Load the plugin that provides the "uglify" task.
|
||||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||||
|
|
||||||
|
|
||||||
// Default task(s).
|
// Default task(s).
|
||||||
grunt.registerTask('default', ['uglify']);
|
grunt.registerTask('default', ['uglify','cssmin']);
|
||||||
|
|
||||||
};
|
};
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/BorysLevytskyi/BitwiseCmd",
|
"homepage": "https://github.com/BorysLevytskyi/BitwiseCmd",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"grunt-contrib-cssmin": "^0.12.2",
|
||||||
"grunt-contrib-uglify": "^0.9.1"
|
"grunt-contrib-uglify": "^0.9.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user