How to use webpack-filter-warnings-plugin - 2 common examples

To help you get started, we’ve selected a few webpack-filter-warnings-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 choerodon / choerodon-front-boot / src / bin / common / webpackConfig / getWebpackCommonConfig.js View on Github external
export default function getWebpackCommonConfig(mode, env) {
  const { isDev, choerodonConfig: { masterName: masterName = 'master' } } = context;
  const babelOptions = getBabelCommonConfig(mode, env);
  const tsOptions = getTSCommonConfig();

  const plugins = [
    new FilterWarningsPlugin({
      exclude: /.*@choerodon.*/,
    }),
    new webpack.optimize.CommonsChunkPlugin({
      name: 'vendor',
      minChunks: Infinity,
    }),
    new ExtractTextPlugin({
      filename: cssFileName,
      disable: false,
      allChunks: true,
    }),
    new CaseSensitivePathsPlugin(),
    new webpack.ProgressPlugin((percentage, msg, addInfo) => {
      const stream = process.stderr;
      if (stream.isTTY) {
        if (stream.isTTY && percentage < 0.71) {
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;
};

webpack-filter-warnings-plugin

Allows you to hide certain warnings from webpack compilations

MIT
Latest version published 6 years ago

Package Health Score

60 / 100
Full package analysis

Popular webpack-filter-warnings-plugin functions