mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 00:51:17 +00:00
479 B
479 B
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:
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;
},
};