Skip to content

Instantly share code, notes, and snippets.

@Phoen1x84
Last active April 4, 2016 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Phoen1x84/6538a6f6d068881d1a8d to your computer and use it in GitHub Desktop.
Save Phoen1x84/6538a6f6d068881d1a8d to your computer and use it in GitHub Desktop.
less
module.exports = {
// Less
main: {
options: {
sourceMap: true,
paths: ['<%= paths.cssSrc %>'] // scans for @import
},
files: [{
expand: true, // Enable dynamic expansion.
cwd: '<%= paths.cssSrc %>', // Src matches are relative to this path.
src: ['**/main.less'], // Actual pattern(s) to match.
dest: '<%= paths.cssDist %>', // Destination path prefix.
ext: '.css', // Dest filepaths will have this extension.
}],
},
// Sitecore Webforms For Marketeers compilation
wffm: {
options: {
sourceMap: false,
paths: ['<%= paths.scModule %>']
},
files: {
'<%= paths.wffmDist %>/<%= paths.wffmCssFileName %>.css': '<%= paths.wffmSrc %>/_web-forms.less'
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment