Deprecation Notice: The arcgis-js-api npm package has been deprecated at 4.29 and will be retired at 4.31. If you are building a new application, we recommend using the @arcgis/core ES modules, here are sample applications for getting started.
These are example local build configurations for Dojo and Requirejs when using the arcgis-js-api (AMD) npm package.
If you want to build your application using Dojo, it is recommended to use grunt-dojo and the included build.profile.
The demo Dojo application can be found here;
You can use RequireJS to optimize the application. To get a fully optimized build with RequireJS, you will need to add some files manually to the build as needed.