0.1.2 • Published 6 years ago

glob-preload-key-requests-webpack-plugin v0.1.2

Weekly downloads
318
License
MIT
Repository
-
Last release
6 years ago

Glob Preload Key Requests Webpack Plugin

const GlobPreloadKeyRequestsPlugin = require('glob-preload-key-requests-webpack-plugin');

module.exports = {
  // entry: ...
  // module: ...
  plugins: [
    new GlobPreloadKeyRequestsPlugin({
      base: path.resolve(__dirname, 'build'),
      src: 'index.html',
      dest: 'index.html',
      inlineCSS: true, // => default false
      cssGlobPatterns: ['login'],
      jsGlobPatterns: ['login'],
    }),
  ]
}

License

MIT