How to use event-hooks-webpack-plugin - 3 common examples

To help you get started, we’ve selected a few event-hooks-webpack-plugin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Silind-Software / create-react-web-component / config / config-overrides.js View on Github external
const overridePlugins = (plugins, env) => {
  plugins[0].options.inject = 'head';

  plugins.push(
    new EventHooksPlugin({
      done: new PromiseTask(() => copyBundleScript(env)),
    }),
  );

  return plugins;
};
github Silind-Software / direflow / packages / direflow-component / src / config / config-overrides.ts View on Github external
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;
};
github Silind-Software / direflow / packages / direflow-component / src / config / config-overrides.ts View on Github external
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;
};

event-hooks-webpack-plugin

Execute JavaScript on any available Webpack event hook

MIT
Latest version published 1 year ago

Package Health Score

51 / 100
Full package analysis