odoe / jsapi-webpack

Sample using the webpack plugin with babel
20 stars 10 forks source link

how to set dojoConfig before the webpack #4

Closed giserMao closed 5 years ago

giserMao commented 6 years ago

hi odoe: When I want to set the locale of arcgis to "zh-cn", the dojoconfig configuration does not work. I guess the reason is that djconfig is loaded after webpack.

odoe commented 5 years ago

You can set the locales as part of the arcgis-webpack-plugin options.

This will create a smaller deployed output as only the files for the specified locales will be included.