Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
afterEmit: function(compilation) {
const supportedTemplateExtensions = patternEngines.getSupportedFileExtensions();
const templateFilePaths = supportedTemplateExtensions.map(
function(dotExtension) {
return `${plConfig.paths.source.patterns}**/*${dotExtension}`;
}
);
// additional watch files
const watchFiles = [
`${plConfig.paths.source.patterns}**/*.(json|md|yaml|yml)`,
`${plConfig.paths.source.data}**/*.(json|md|yaml|yml)`,
`${plConfig.paths.source.fonts}**/*`,
`${plConfig.paths.source.images}**/*`,
`${plConfig.paths.source.meta}**/*`,
`${plConfig.paths.source.annotations}**/*`
];