Skip to content

Commit

Permalink
Fixed optimizer config syntax (having .js will not compile)
Browse files Browse the repository at this point in the history
  • Loading branch information
antris committed Jun 14, 2012
1 parent 8c3e851 commit a40f1ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -65,7 +65,7 @@ The [text](http://requirejs.org/docs/api.html#text) and


Run the optimizer using [Node](http://nodejs.org) (also [works in Java](https://github.com/jrburke/r.js/blob/master/README.md)): Run the optimizer using [Node](http://nodejs.org) (also [works in Java](https://github.com/jrburke/r.js/blob/master/README.md)):


node r.js -o baseUrl=. name=path/to/almond.js include=main out=main-built.js wrap=true node r.js -o baseUrl=. name=path/to/almond include=main out=main-built.js wrap=true


This assumes your project's top-level script file is called main.js and the command This assumes your project's top-level script file is called main.js and the command
above is run from the directory containing main.js. If you prefer to use a build.js build profile instead of command line arguments, [this RequireJS optimization section](http://requirejs.org/docs/optimization.html#pitfalls) has info on how to do that. above is run from the directory containing main.js. If you prefer to use a build.js build profile instead of command line arguments, [this RequireJS optimization section](http://requirejs.org/docs/optimization.html#pitfalls) has info on how to do that.
Expand Down Expand Up @@ -104,7 +104,7 @@ or, if using a build config file:
```javascript ```javascript
{ {
baseUrl: '.', baseUrl: '.',
name: 'path/to/almond.js', name: 'path/to/almond',
include: ['main'], include: ['main'],
insertRequire: ['main'], insertRequire: ['main'],
out: 'main-built.js', out: 'main-built.js',
Expand Down

0 comments on commit a40f1ca

Please sign in to comment.