Skip to content

Commit f0673c8

Browse files
committed
Merge pull request requirejs#87 from pmcelhaney/master
Additions to example.build.js, to address confusion over differences with command line options.
2 parents 3b40ac1 + b901fd4 commit f0673c8

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

build/example.build.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
loggingLevel: 'WARNING'
9393
},
9494

95-
//Allow CSS optimizations. Allowed values:
95+
//Allow S optimizations. Allowed values:
9696
//- "standard": @import inlining, comment removal and line returns.
9797
//Removing line returns may have problems in IE, depending on the type
9898
//of CSS.
@@ -104,7 +104,12 @@
104104
//inlining. The value of this option should be a comma separated list
105105
//of CSS file names to ignore. The file names should match whatever
106106
//strings are used in the @import calls.
107-
cssImportIgnore: null,
107+
cssImportIgnore: null,
108+
109+
//cssIn is typically used as a command line option. It can be used
110+
//along with out to optimize a single CSS file.
111+
cssIn: "path/to/main.css",
112+
out: "path/to/css-optimized.css",
108113

109114
//Inlines the text for any text! dependencies, to avoid the separate
110115
//async XMLHttpRequest calls to load those dependencies.
@@ -257,6 +262,14 @@
257262
]
258263
}
259264
],
265+
266+
267+
// If you only intend to optimize a module (and its dependencies), with
268+
// a single file as the output, you can specify the module options inline.
269+
// The name of the optimized file is specified by out.
270+
name: "foo/bar/bop",
271+
include: ["foo/bar/bee"],
272+
out: "path/to/optimized-file.js",
260273

261274
//Wrap any build layer in a start and end text specified by wrap.
262275
//Use this to encapsulate the module code so that define/require are

0 commit comments

Comments
 (0)