Upgrade to Mix 6 | laravel mix vue
npminstall[email protected][1]ReviewYourDependenciesLaravelMix6shipswithsupportforthelatestversionsofnumerousdependencies,includingwebpack5,PostCSS8,VueLoader16,andmore.Thesearesignificantreleaseswiththeirownsetsofbreakingchanges.Wevedoneourbesttonormalizethesechanges,butitsstillparticularlyimportantthatyoutakethetimetofullytestyourbuildafterupgradingtoMix6.Pleasereviewyourpackage.jsondependencieslistforanythird-partytoolsorpluginsthatmaynotyetbecompatiblewithwebpack5orPostCSS8.UpdateYourNPM...
npm install [email protected][1] Review Your DependenciesLaravel Mix 6 ships with support for the latest versions of numerous dependencies, including webpack 5, PostCSS 8, Vue Loader 16, and more. These are significant releases with their own sets of breaking changes. Weve done our best to normalize these changes, but its still particularly important that you take the time to fully test your build after upgrading to Mix 6.
Please review your package.json dependencies list for any third-party tools or plugins that may not yet be compatible with webpack 5 or PostCSS 8.
Update Your NPM ScriptsIf your build throws an error such as Unknown argument: --hide-modules, the scripts section of your package.json file will need to be updated. The Webpack 5 CLI removed a number of options that your NPM scripts was likely referencing.
While youre at it, go ahead and switch over to the new Mix CLI.
Before "scripts": { "development": "cross-env NODE_ENV=development n...