Vue CLI 3 plugin enabling webpack multi-compiler mode, allowing parallel builds of multiple configs from a single vue-cli project. Current version 0.1.0 targets Node >=8 and Vue CLI 3 ecosystems. Key differentiator: supports both function and array configuration modes for splitting webpack configs, with automatic merging via webpack-merge when using array mode. Low release cadence with no updates since initial release. Use for projects needing multiple entry points or separate build targets from the same Vue CLI setup, such as main + app bundles.
npm install vue-cli-plugin-multi-compilerNo compatibility data collected yet for this library.
Shows how to add the plugin and configure multiple webpack configs using function mode in vue.config.js.
Use Vue CLI 3 or migrate to @vue/cli-service with custom webpack chain.
Migrate project to Vue CLI 4 or use Vite with custom builds.
Install lodash.clonedeep and require it inside the function.
Run 'npm install webpack-merge --save-dev' or 'yarn add webpack-merge --dev'.
Wrap config in pluginOptions: { configureMultiCompilerWebpack: ... }Ensure the function returns an array of valid webpack configuration objects.