1 | const config = require('../config')
|
2 |
|
3 | module.exports = function preHandleConfig({ command, webpackConfig, entry }) {
|
4 | if (config.webpackPluginsHandler) {
|
5 | config.webpackPluginsHandler({
|
6 | entry: entry,
|
7 | command,
|
8 | argv: config.argv,
|
9 | target: config.target,
|
10 | mode: process.env.NODE_ENV,
|
11 | webpackPlugins: webpackConfig.plugins
|
12 | })
|
13 | }
|
14 |
|
15 | return webpackConfig
|
16 | }
|