Peter
Peter

Reputation: 956

Possible to include (r.js) optimized file directly?

after optimizing a require.js project (pushing everything into one "big" .js file), is there any way to circumstance the need to include the require.js file (which then only loads one single .js file) and load the compiled file directly instead?

Upvotes: 1

Views: 135

Answers (1)

Andreas Köberle
Andreas Köberle

Reputation: 110892

You can use a light weight AMD loader like Almond. You will still need a loader anyway as your compiled JavaScript still use define and require.

Upvotes: 1

Related Questions