plotly / dash-component-boilerplate

Get started creating your own Dash components here.
265 stars 182 forks source link

Combine adding 'shared' files with 'min' files in `_js_dist` #143

Closed TillerBurr closed 1 year ago

TillerBurr commented 2 years ago

This fixes #142

To reduce code duplication, the -shared in webpack.config.js was changed to .shared. Then this can be combined with the extension of the _js_dist using the min version.

Since it is hard to tell if there is a shared file until it is generated, a shared_resources list was created that defaults to ["min"]. If a shared file is generated, then 'shared' would need to be appended to this list. Without checking to see if a file exists, this is simplest fix I could think of.