Skip to content

Instantly share code, notes, and snippets.

@Phoen1x84

Phoen1x84/less.js Secret

Last active Apr 4, 2016
Embed
What would you like to do?
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
You can’t perform that action at this time.