UNPKG

@nodefony/monitoring-bundle

Version:
20 lines (16 loc) 412 B
module.exports = { Query: { async getWebpackConfigBundle (obj, field, context, info) { const { name } = field; const bundle = context.kernel.getBundle(name); // const compiler = await bundle.findWebPackConfig() const res = { file: bundle.webpackConfigFile.path // config: bundle.webPackConfig }; return JSON.stringify(res); } } };