Bug #25882
webpack plugin compilation ignores all but main index.js entry
Description
script/plugin_webpack_directories.rb#L28 supports plugins to have multiple 'bundles/entries' of assets, however during production compilation, these extra bundles are ignored:
https://github.com/theforeman/foreman/blob/develop/config/webpack.config.js#L73
Related issues
Associated revisions
Refs #25882 - use working iterator for webpack entries
Refs #25882 - Load additional plugin chunks
When loading the manifest.json from a plugin we need to include plugin
and plugin:*.
bc486dd62734be908cd3f95da1352cc1944eb34b attempted to make it possible
to create additional bundles. 202c65d0efc0345b883ba6d1e70aedc90b3d5294
then configured webpack to actually compile the bundle during build.
This completes the chain by loading it in the actual manifest so you can
use it in a production build where the development server isn't present.
History
#1
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/6421 added
#2
Updated by Justin Sherrill over 3 years ago
- Related to Bug #25883: adapt to new webpack bundle entry format added
#3
Updated by Justin Sherrill over 3 years ago
- Related to deleted (Bug #25883: adapt to new webpack bundle entry format)
#4
Updated by Justin Sherrill over 3 years ago
- Blocks Bug #25883: adapt to new webpack bundle entry format added
#5
Updated by Justin Sherrill over 3 years ago
- Target version set to 1.21.0
#6
Updated by Tomer Brisker over 3 years ago
- Fixed in Releases 1.21.0 added
#7
Updated by Justin Sherrill over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 202c65d0efc0345b883ba6d1e70aedc90b3d5294.
#8
Updated by The Foreman Bot over 3 years ago
- Pull request https://github.com/theforeman/foreman/pull/6429 added
#9
Updated by The Foreman Bot over 3 years ago
- Pull request https://github.com/theforeman/foreman/pull/6436 added
Fixes #25882 - compile extra bundles during plugin compile