L
L
lkdnvc2014-09-08 07:40:57
JavaScript
lkdnvc, 2014-09-08 07:40:57

Is it possible to exclude require.js from project build?

I use require.js in my project, for assembly I use r.js, which collects all files into one, and then minifies them. Then, when the page is loaded in the browser, require.js is included, which includes the minified assembly file. Is it possible to make r.js compile the file excluding require.js from there, so that I immediately include the build file without require.js?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin Kitmanov, 2014-09-08
@lkdnvc

You need an AMD-shim like almond .

Y
yttrium, 2014-09-08
@yttrium

you can write your require and define

A
Alexander Tartmin, 2014-09-08
@baskerville42

If all you need is to collect a bunch of files into one, maybe you should look towards Grunt?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question