()
| 242 | }); |
| 243 | |
| 244 | const getPageConfig = () => { |
| 245 | const config = getBaseConfig(); |
| 246 | config.entry = Object.fromEntries(pages.map(name => [`${name}/index`, `./src/${name}`])); |
| 247 | config.plugins = [ |
| 248 | ...config.plugins, |
| 249 | ...pages.filter(key => key !== 'background').map(createHtmlPage), |
| 250 | ]; |
| 251 | return config; |
| 252 | }; |
| 253 | |
| 254 | exports.isProd = isProd; |
| 255 | exports.getBaseConfig = getBaseConfig; |
no test coverage detected