This mix is incompatible/unusable with recent laravel-mix:
Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
- options[0] should be an object:
object { patterns, options? }
ValidationError: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
at validate ([...]/node_modules/copy-webpack-plugin/node_modules/schema-utils/dist/validate.js:104:11)
at new CopyPlugin ([...]/node_modules/copy-webpack-plugin/dist/index.js:40:31)
at Imagemin.webpackPlugins ([...]/node_modules/laravel-mix-imagemin/src/Imagemin.js:31:13)
at ComponentFactory.applyPlugins ([...]/node_modules/laravel-mix/src/components/ComponentFactory.js:167:23)
at [...]/node_modules/laravel-mix/src/components/ComponentFactory.js:71:26
at [...]/node_modules/laravel-mix/src/Dispatcher.js:34:47
at Array.forEach (<anonymous>)
at Dispatcher.fire ([...]/node_modules/laravel-mix/src/Dispatcher.js:34:28)
at Mix.dispatch ([...]/node_modules/laravel-mix/src/Mix.js:118:25)
at WebpackConfig.buildPlugins ([...]/node_modules/laravel-mix/src/builder/WebpackConfig.js:103:13)
at WebpackConfig.build ([...]/node_modules/laravel-mix/src/builder/WebpackConfig.js:24:14)
at Object.<anonymous> ([...]/node_modules/laravel-mix/setup/webpack.config.js:29:38)
at Module._compile ([...]/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require ([...]/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
The only workaround at this time is to use normal wepback config and webpack-imagemin.
This mix is incompatible/unusable with recent
laravel-mix
:The only workaround at this time is to use normal wepback config and webpack-imagemin.