Make WordPress Core

Timestamp:
09/23/2022 08:25:45 AM (22 months ago)
Author:
gziolo
Message:

Build: Improve how combined assets are generated

Allows to revert changes applied in [54277] - temporary workaround for the failing Test NPM CI check on Windows.

Improvements included:

  • generate combined asset files for both production and development
  • store in the repository only the production version of the combined assets for packages, we use everything else only in development
  • to make unit tests work, ensure that they ignore react fast refresh and use the production version of combined assets that are present in the source code

Props bernhard-reiter, jsnajdr, clorith, wildworks.
Fixes #56615.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/webpack/development.js

    r53140 r54289  
    3636            },
    3737            plugins: [ new DependencyExtractionWebpackPlugin( {
    38                 outputFilename: '../../../assets/script-loader-[name].php',
     38                outputFilename: ,
    3939            } ) ],
    4040        },
     
    5454                new DependencyExtractionWebpackPlugin( {
    5555                    useDefaults: false,
    56                     outputFilename: '../../../assets/script-loader-[name].php'
     56                    outputFilename:
    5757                } ),
    5858            ],
Note: See TracChangeset for help on using the changeset viewer.