Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const overridePlugins = (plugins, env) => {
plugins[0].options.inject = 'head';
plugins.push(
new EventHooksPlugin({
done: new PromiseTask(() => copyBundleScript(env)),
}),
);
return plugins;
};
const overridePlugins = (plugins: any, env: string) => {
plugins[0].options.inject = 'head';
plugins.push(
new EventHooksPlugin({
done: new PromiseTask(() => copyBundleScript(env)),
}),
);
plugins.push(
new FilterWarningsPlugin({
exclude: [/Module not found.*/, /Critical dependency: the request of a dependency is an expression/],
}),
);
return plugins;
};
const overridePlugins = (plugins: any, env: string) => {
plugins[0].options.inject = 'head';
plugins.push(
new EventHooksPlugin({
done: new PromiseTask(() => copyBundleScript(env)),
}),
);
plugins.push(
new FilterWarningsPlugin({
exclude: [/Module not found.*/, /Critical dependency: the request of a dependency is an expression/],
}),
);
return plugins;
};