This section is completely optional, and is not necessary in most use cases.
Webpack is the bundler Adalo uses, and we supply a default config for every component library. In most cases, the default config will be all you need. There are some cases though where you may want to use your own webpack configuration.
Add your own custom Webpack Configuration
In order to do this, create a webpack config file within your library's directory. Next, edit the
package.json and add under the
Make sure to make your config the only export of the webpack config file.
If you choose to specify your own webpack config file, you are welcome to use this file as a starting point.
This example expects you to have the Adalo CLI installed as a dev dependency of your component:
yarn add --dev @adalo/cli