created aliases for assets in Gruntfile.js

This commit is contained in:
claudiosmweb 2014-02-02 17:24:02 -02:00
parent 2db6944e10
commit c7097a8794
1 changed files with 10 additions and 2 deletions

View File

@ -3,6 +3,14 @@ module.exports = function( grunt ){
'use strict';
grunt.initConfig({
// setting folder templates
dirs: {
css: 'assets/css',
fonts: 'assets/fonts',
images: 'assets/images',
js: 'assets/js'
},
// Compile specified less files
less: {
compile: {
@ -11,13 +19,13 @@ module.exports = function( grunt ){
paths: ['assets/css']
},
files: {
'assets/css/woocommerce.css': 'assets/css/woocommerce.less'
'<%= dirs.css %>/woocommerce.css': '<%= dirs.css %>/woocommerce.less'
}
}
},
cssmin: {
'assets/css/woocommerce.css': ['assets/css/woocommerce.css']
'<%= dirs.css %>/woocommerce.css': ['<%= dirs.css %>/woocommerce.css']
},
shell: {