BabelConfig.fetchBabelRc/static BabelConfig.default/static BabelConfig.generatehave all been deprecated. They are no longer used by Mix itself but remain for backwards compatability.MixDefinitionsPlugin.getDefinitionsandstatic MixDefinitionsPlugin.buildhave been deprecated. They are no longer used by Mix itself but remain for backwards compatability.static Chunks._instance/static Chunks.instance()/static Chunks.reset()are now deprecated and will be removed in a future release.- The static methods on
HotReloadingare now deprecated. They have been replaced with instance methods. - The use of the globals
Mix,Config, andwebpackConfigare now deprecated and will warn on use in Mix v7.
We are working toward an API for access to Mix for extensions that does not assume that it is a global or that it is the same instance in all cases.
In the mean time:
- Uses of
Chunks.instance()may be replaced withMix.chunks - Uses of
Configmay be replaced withMix.config - Uses of
webpackConfigmay be replaced withMix.webpackConfig - Uses of
HotReloading.*methodsMix.hot.*
- Support for webpack 5
- New
npx mixexecutable for triggering your build - Support for Vue 3 applications
- Support for PostCSS 8
- New
mix.vue()andmix.react()commands - New
mix.alias()command (Learn More) - Support for changing the webpack manifest output path (Learn More)
- New
mix.before()hook (Learn More) - Improved
mix.combine()wildcard support - Improved
mix.extract()priority and tree-shaking logic
- Fixed "empty CSS file" extraction bug when using dynamic imports
- Fixed
mix.ts()TypeScript bug that skipped Babel transformation in certain cases - Fixed and improved PostCSS plugin autoloading and merging
- Fixed an issue related to hot module reloading when versioning is enabled
- Added TypeScript types for API