strapi/docs/v3.x/admin-panel/custom-webpack-config.md
Alexandre BODIN 61c0c9d9b4
Add v3.x and remove alpha docs (#6344)
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-05-25 18:11:45 +02:00

17 lines
479 B
Markdown

# Custom Webpack Config
In order to extend the usage of webpack, you can define a function that extends its config inside `admin/admin.config.js`, like so:
```js
module.exports = {
webpack: (config, webpack) => {
// Note: we provide webpack above so you should not `require` it
// Perform customizations to webpack config
// Important: return the modified config
config.plugins.push(new webpack.IgnorePlugin(/\/__tests__\//));
return config;
},
};
```