123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- module.exports = function (grunt) {
- grunt.initConfig({
- watch: {
- compass: {
- files: ['css/jee.scss', 'css/wysiwyg.scss'],
- tasks: ['compass:dev']
- },
- postcss: {
- files: ['css/jee.scss', 'css/wysiwyg.scss'],
- tasks: ['postcss']
- },
-
-
-
- },
- compass: {
- dev: {
- options: {
- sassDir: 'css',
- cssDir: 'css',
- imagesPath: 'assets/img',
- noLineComments: false,
-
- }
- }
- },
- postcss: {
- options: {
- processors: [
- require('autoprefixer-core')({
- browsers: ['> 1%']
- }).postcss,
- ]
- },
- dist: { src: 'css/*.css' }
- },
- svg2png: {
- assets: {
-
- files: [
-
-
-
- { src: ['assets/img/*.svg'] }
- ]
- }
- }
- });
- grunt.loadNpmTasks('grunt-contrib-compass');
- grunt.loadNpmTasks('grunt-contrib-sass');
- grunt.loadNpmTasks('grunt-contrib-watch');
- grunt.loadNpmTasks('grunt-postcss');
- grunt.loadNpmTasks('grunt-svg2png');
- grunt.registerTask('default', ['compass', 'postcss', 'svg2png']);
- };
|