MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / getPageConfig

Function getPageConfig

scripts/webpack-base.js:244–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242});
243
244const 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
254exports.isProd = isProd;
255exports.getBaseConfig = getBaseConfig;

Callers 1

buildConfigFunction · 0.85

Calls 3

getBaseConfigFunction · 0.85
mapMethod · 0.80
filterMethod · 0.80

Tested by

no test coverage detected