Skip to content

Commit

Permalink
Fixes #115 when this change is taken with the fix in #98.
Browse files Browse the repository at this point in the history
Error if modules and name are used together.
  • Loading branch information
jrburke committed May 23, 2012
1 parent 6ddef04 commit af624b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/jslib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,11 @@ function (lang, logger, file, parse, optimize, pragma,
'should be a "dir" option set and "out" should ' +
'not be used since "out" is only for single file ' +
'optimization output.');
} else if (config.modules && config.name) {
throw new Error('"name" and "modules" options are incompatible. ' +
'Either use "name" if doing a single file ' +
'optimization, or "modules" if you want to target ' +
'more than one file for optimization.');
}

if (config.out && !config.cssIn) {
Expand Down

0 comments on commit af624b9

Please sign in to comment.