Guest User

Untitled

a guest
Oct 22nd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. module.exports = function (grunt) {
  2.  
  3. grunt.loadNpmTasks('grunt-contrib-cssmin');
  4. grunt.loadNpmTasks('grunt-contrib-watch');
  5.  
  6. grunt.initConfig({
  7. pkg: grunt.file.readJSON('package.json'),
  8. cssmin: {
  9. options: {
  10. mergeIntoShorthands: false,
  11. roundingPrecision: -1
  12. },
  13. target: {
  14. files: {
  15. 'css/all.css': [
  16. 'css/colors.css',
  17. 'css/variable.css',
  18. 'css/style.css',
  19. 'css/another-file.css',
  20. 'css/styles-for-some-other-package.css',
  21. ]
  22. }
  23. }
  24. },
  25. watch: {
  26. scripts: {
  27. files: ['css/*.css'],
  28. tasks: ['cssmin'],
  29. options: {
  30. spawn: false,
  31. },
  32. },
  33. },
  34. });
  35. grunt.registerTask('default', ['cssmin', 'watch']);
  36. }
Add Comment
Please, Sign In to add comment