5

I am working on large scale web app using AngularJs as front-end and Laravel RESTful API as back-end

Currently I am using gulp to concatenate all script files in one file including angular libraries and all modules and controllers and it's about 46,000 line of code.

Is this a good approach regrading performance?, or I've to include all script files separately.

Also Is concatenating some files and including the others is a good approach?

Thanks in advance!

2 Answers 2

4

Yes it is a standard approach for production

For development keep seperate files so debugging is a lot easier. For production it is highly advisable to combine all the files and minify it.

Infact if you use webpack you can have all css , js files in one bundle

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

Comments

0

Webpack is awesome tool. Gulp would also do the job.

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.