From c7097a879469a97e0f105b61ad4336f209c1e0f1 Mon Sep 17 00:00:00 2001 From: claudiosmweb Date: Sun, 2 Feb 2014 17:24:02 -0200 Subject: [PATCH] created aliases for assets in Gruntfile.js --- Gruntfile.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index f30844bfaa6..3ca6e7830af 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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: {