Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There are lots of options you can set in the build file. See the full example on GitHub (<a href="https://github.com/jrburke/r.js/blob/master/build/example.build.js" rel="nofollow">https://github.com/jrburke/r.js/blob/master/build/example.build.js</a>)</p> <p>What you want to do is exclude certain items from your module: </p> <pre><code> //This module entry combines all the dependencies of foo/bar/bip into one file, //but excludes foo/bar/bop and its dependencies from the built file. If you want //to exclude a module that is also another module being optimized, it is more //efficient if you define that module optimization entry before using it //in an exclude array. { name: "foo/bar/bip", exclude: [ "foo/bar/bop" ] }, //This module entry shows how to specify a specific module be excluded //from the built module file. excludeShallow means just exclude that //specific module, but if that module has nested dependencies that are //part of the built file, keep them in there. This is useful during //development when you want to have a fast bundled set of modules, but //just develop/debug one or two modules at a time. { name: "foo/bar/bin", excludeShallow: [ "foo/bar/bot" ] } </code></pre> <p>You can also exclude items with a regular expression, but this is probably overkill:</p> <pre><code>//When the optimizer copies files from the source location to the //destination directory, it will skip directories and files that start //with a ".". If you want to copy .directories or certain .files, for //instance if you keep some packages in a .packages directory, or copy //over .htaccess files, you can set this to null. If you want to change //the exclusion rules, change it to a different regexp. If the regexp //matches, it means the directory will be excluded. This used to be //called dirExclusionRegExp before the 1.0.2 release. //As of 1.0.3, this value can also be a string that is converted to a //RegExp via new RegExp(). fileExclusionRegExp: /^\./, </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload