Webpack
In order to integrate Mosaic into a Webpack-powered project, the following steps should be performed
Install the dependencies
Using mosaic requires three packages in your Webpack-powered project - the configuration injection package, the runtime package and the helper package for linking local dependencies.
Inject the configuration
In this scenario (using own Webpack configuration), you are required to manually inject that configuration. The integration packages for Next.js and create-react-app do exactly this under the hood.
webpack.config.js
You may be asked to provide additional fields to your webpack configuration, or additional options to the configuration injector itself.
Last updated