12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- module.exports = function (grunt) {
- grunt.initConfig({
- watch: {
- compass: {
- files: ['scss/styles.scss', 'scss/wysiwyg.scss', 'scss/layout.scss', 'scss/gui.scss', 'scss/misc.scss', 'scss/fonts.scss', 'scss/colors.scss'],
- tasks: ['compass:dev']
- },
- postcss: {
- files: ['scss/styles.scss', 'scss/wysiwyg.scss'],
- tasks: ['postcss']
- },
-
-
-
- },
- compass: {
- dev: {
- options: {
- sassDir: 'scss',
- cssDir: 'css',
- specify: ['scss/styles.scss', 'scss/wysiwyg.scss'],
- imagesPath: 'img',
- noLineComments: false,
-
- }
- }
- },
- postcss: {
- options: {
- processors: [
- require('autoprefixer-core')({
- browsers: ['> 1%']
- }).postcss,
- ]
- },
- dist: { src: 'css/*.css' }
- },
- svg2png: {
- assets: {
-
- files: [
-
-
-
- { src: ['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', ['svg2png']);
- };
|