3

I managed to use require.js and it's optimizer to optimize my project. But it generates 3 javascript files:

1. main file

The require.js config file (the one referenced in html as data-main )

2. require.js library

The code for require.js.

3. My application code

Is it possible to merge these 3 javascript files into one single file?

1 Answer 1

2

Take a look at the grunt js project, with specific to :

   grunt concat

and the plugin for require js:

https://github.com/asciidisco/grunt-requirejs

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.