How to migrate my website to Requirejs?

Asked

Viewed 75 times

1

Currently I concateno all my Avascripts with Grunt sending the minified file to the page, but I know that a best practice is to use Requirejs to mudularizar everything, but I do not know how to migrate my Javascript files from "normal" to "modules". :/

  • What’s on the server? Node.js or PHP? You could transition to ES6 syntax without having to go through Requirejs that will probably disappear.

  • I currently have PHP, but tbm am migrating to Nodejs.

1 answer

2


Browser other questions tagged

You are not signed in. Login or sign up in order to post.