Esri / arcgis-webpack-plugin

Webpack plugin for the ArcGIS API for JavaScript
Apache License 2.0
134 stars 26 forks source link

ColorSlider's "xAvg.svg" file is not included #48

Closed ReneU closed 5 years ago

ReneU commented 5 years ago

ColorSlider's "xAvg.svg" file is not included

Description

When using the ColorSlider module to build a widget similar to the API Sample the svg image that indicates the average on the histogram can't be loaded as it is not included.

Expected Behavior

Average-icon file should be loaded like any other theme-related svg

Actual Behavior

GET http://localhost:8080/arcgis-js-api/widgets/RendererSlider/xAvg.svg 404 (Not Found)

Possible Fix

I'm not an expert but as the path is not covered by any of the existing sections of the CopyWebpackPlugin, I guess it should be sufficient to add this snippet to it: { context: "node_modules", from: "arcgis-js-api/widgets/RendererSlider/xAvg.svg" },

Steps to Reproduce

I could build a minimal sample with the arcgis-js-cli if required. Otherwise it's sufficient to include the ColorSlider in your application.

Context

I'm using the arcgis-js-cli. The error occurs no matter if using dev-mode or production-mode

Your Environment

odoe commented 5 years ago

This is now fixed in latest release. Thanks!