This sample application shows how to apply webpack on a legacy 4.x ArcGIS API for JavaScript application to get it ready for production. This sample is using the 4.10 version of the ArcGIS API for JavaScript.
- Sample Enterprise Application - Formatted and developed to work with Automated Webpack Builds
- Sample Webpack Config - Sample webpack files to be adapted to your own applications
- install git
- install Node.js
- Fork and then clone this repository.
- Navigate to the folder project was cloned to.
- Install local node packages into your project by running
npm install
- Run the webpack build using grunt by running
npm run build
- When the build is complete the dist directory should be a production ready version of the application
- Notepad or your favorite HTML editor
- Node.js
- Web browser with access to the Internet
- ArcGIS for JavaScript API Resource Center
- ArcGIS WebPack Plugin Documentation
- ArcGIS WebPack Plugin Source
- ArcGIS Blog
- twitter@esri
- Dev Summit 2018 Build Presentation
- Dev Summit 2017 Build Presentation
- Dev Summit 2017 Testing Presentation
Find a bug or want to request a new feature? Please let us know by submitting an issue.
Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.
Copyright 2015 Esri
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
A copy of the license is available in the repository's license.txt file.