Gruntfile.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. module.exports = function (grunt) {
  2. grunt.initConfig({
  3. watch: {
  4. compass: {
  5. files: ['css/jee.scss', 'css/wysiwyg.scss'],
  6. tasks: ['compass:dev']
  7. },
  8. postcss: {
  9. files: ['css/jee.scss', 'css/wysiwyg.scss'],
  10. tasks: ['postcss']
  11. },
  12. // options: {
  13. // livereload: true,
  14. // },
  15. },
  16. compass: {
  17. dev: {
  18. options: {
  19. sassDir: 'css',
  20. cssDir: 'css',
  21. imagesPath: 'assets/img',
  22. noLineComments: false,
  23. outputStyle: 'compressed'
  24. }
  25. }
  26. },
  27. postcss: {
  28. options: {
  29. processors: [
  30. require('autoprefixer-core')({browsers: 'last 3 version'}).postcss,
  31. ]
  32. },
  33. dist: { src: 'css/*.css' }
  34. },
  35. });
  36. grunt.loadNpmTasks('grunt-contrib-compass');
  37. grunt.loadNpmTasks('grunt-contrib-sass');
  38. grunt.loadNpmTasks('grunt-contrib-watch');
  39. grunt.loadNpmTasks('grunt-postcss');
  40. grunt.registerTask('default', ['compass', 'postcss']);
  41. };