1.8.x to v1.9.x

Module Option webpack removed

The moduel option webpack has been removed and replaced by the function webpackExtend in the Entry Options.

Learn more about webpackExtend

Before:

{
  webpack: {
    publicPathInject: () => global.externalPublicPath,
    output: { 
      publicPath: './'
    },
    optimization: {},
    plugins: []
  },
  entries: [
    {
      name: 'Element',
      tags: []
    }
  ]
}

After:

{
  entries: [
    {
      name: 'Element',
      webpackExtend(config => {
        config.output.publicPath = './';
        config.optimization.splitChunks = {
          ...config.optimization.splitChunks,
          ...optimizationSplitChunksOverride
        };
        config.plugins.push(new WebpackDynamicPublicPathPlugin({
          externalPublicPath: 'window.externalPublicPath'
        }));
        return config;
      }),
      tags: []
    }
  ]
}
Edit this page on GitHub Updated at Sat, Jul 30, 2022