Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/w3p706/shifter into w3p706-…
Browse files Browse the repository at this point in the history
…master
  • Loading branch information
davglass committed Mar 7, 2013
2 parents 9c4b7ad + e2f9775 commit 359a364
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/module.js
Expand Up @@ -224,7 +224,8 @@ var buildCSS = function (mod, name, callback) {
var queue = new Queue({
logger: log,
registry: registry
});
}),
replacers = [];

queue.read(resolve(mod.cssfiles, 'css'))
.concat()
Expand All @@ -234,6 +235,16 @@ var buildCSS = function (mod, name, callback) {
queue.csslint(cssLintConfig);
}

if (mod.replace) {
Object.keys(mod.replace).forEach(function (key) {
replacers.push({
regex: key,
replace: mod.replace[key]
});
});
queue.replace(replacers);
}

queue.cssstamp({
stamp: '/* YUI CSS Detection Stamp */\n#yui3-css-stamp.' + name + ' { display: none; }'
})
Expand Down

0 comments on commit 359a364

Please sign in to comment.