-
Notifications
You must be signed in to change notification settings - Fork 5
Custom Webpack Configuration
Peter Lenahan edited this page Jan 18, 2019
·
3 revisions
To customize webpack create a zimlet.config.js
file in the root of your Zimlet which exports a function that will change webpack's config. To use a file other than zimlet.config.js
, set a custom path as env.config
.
/**
* Function that mutates original webpack config.
*
* @param {object} config - original webpack config.
* @param {object} env - options passed to CLI.
**/
export default function (config, env) {
/** you can change config here **/
}
- Home
- Client Tool
- Getting Started
- Creating Your Zimlet
- Zimlet Design Patterns
- Advanced