Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fixed optimizer config syntax (having .js will not compile) #29

merged 1 commit into from about 2 years ago

2 participants

Anton Rissanen James Burke
Anton Rissanen
antris commented

When I use the .js extension, r.js (v 2.0.1) won't compile. Fix the docs to reflect this better.

James Burke jrburke merged commit 396c26c into from
James Burke jrburke closed this
James Burke

Thanks! Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jun 14, 2012
Anton Rissanen antris Fixed optimizer config syntax (having .js will not compile) a40f1ca
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2
Source Rendered
@@ -65,7 +65,7 @@ The [text]( and
65 65
66 66 Run the optimizer using [Node]( (also [works in Java](
67 67
68   - node r.js -o baseUrl=. name=path/to/almond.js include=main out=main-built.js wrap=true
  68 + node r.js -o baseUrl=. name=path/to/almond include=main out=main-built.js wrap=true
69 69
70 70 This assumes your project's top-level script file is called main.js and the command
71 71 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]( has info on how to do that.
@@ -104,7 +104,7 @@ or, if using a build config file:
104 104 ```javascript
105 105 {
106 106 baseUrl: '.',
107   - name: 'path/to/almond.js',
  107 + name: 'path/to/almond',
108 108 include: ['main'],
109 109 insertRequire: ['main'],
110 110 out: 'main-built.js',

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.