How to use the guess-webpack.GuessPlugin function in guess-webpack

To help you get started, we’ve selected a few guess-webpack 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 mgechev / guess-next / next.config.js View on Github external
webpack: function(config, { isServer }) {
    if (isServer) return config;
    config.plugins.push(
      new GuessPlugin({
        debug: true,
        reportProvider() {
          return Promise.resolve(JSON.parse(require('fs').readFileSync('./routes.json')));
        },
        runtime: {
          delegate: true
        }
      })
    );
    return config;
  }
};
github daliborgogic / guess-module / lib / module.js View on Github external
this.extendBuild((config, ctx) => {
    if (!ctx.isDev && ctx.isClient) {
      config.plugins.push(new GuessPlugin(options))
    }
  })
}

guess-webpack

Webpack plugins for the Machine Learning-driven bundler

MIT
Latest version published 4 years ago

Package Health Score

47 / 100
Full package analysis

Popular guess-webpack functions