Files
jeunes-et-engages-d7/sites/all/themes/gui/jee/Gruntfile.js
T
Bachir Soussi Chiadmi 81f57b8f4e BIG BIG BIG update
V0 of first interface
going to refactor JS
2015-03-06 11:40:59 +01:00

45 lines
1.1 KiB
JavaScript

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']
},
// options: {
// livereload: true,
// },
},
compass: {
dev: {
options: {
sassDir: 'css',
cssDir: 'css',
imagesPath: 'assets/img',
noLineComments: false,
// outputStyle: 'compressed'
}
}
},
postcss: {
options: {
processors: [
require('autoprefixer-core')({
browsers: ['> 1%'] //, 'ie 8', 'ie 7', 'FirefoxAndroid', 'ExplorerMobile', 'ChromeAndroid'
}).postcss,
]
},
dist: { src: 'css/*.css' }
},
});
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-postcss');
grunt.registerTask('default', ['compass', 'postcss']);
};