prefetch-context-webpack-plugin

0.1.0 • Public • Published

prefetch-context-webpack-plugin

Webpack plugin which prefetches context (all files within the directory tested by a regular expression).

The usecase I had in mind is to use it in combination with eslint-loader to lint not only the files which are in dep tree but every file in a source directory.

Example configuration w/ eslint-loader:

import PrefetchContext from 'prefetch-context-webpack-plugin'

module.exports = {

  ...

  plugins: [
    new PrefetchContext({
      context: './src',
      loader: 'eslint-loader',
    })
  ]
}

Now every file within the ./src directory will be linted.

Readme

Keywords

Package Sidebar

Install

npm i prefetch-context-webpack-plugin

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • andreypopp