Skip to content

Commit

Permalink
Do not optimize css dir if there is no dir. Unix is fine without this…
Browse files Browse the repository at this point in the history
… check, but windows prefers it. Might as well not try to do the work anyway.
  • Loading branch information
jrburke committed Oct 3, 2011
1 parent c01bc8b commit 2b12bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/jslib/build.js
Expand Up @@ -240,7 +240,7 @@ function (lang, logger, file, parse, optimize, pragma,
//Run CSS optimizations before doing JS module tracing, to allow
//things like text loader plugins loading CSS to get the optimized
//CSS.
if (config.optimizeCss && config.optimizeCss !== "none") {
if (config.optimizeCss && config.optimizeCss !== "none" && config.dir) {
optimize.css(config.dir, config);
}

Expand Down

0 comments on commit 2b12bea

Please sign in to comment.