Skip to content

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

Notifications You must be signed in to change notification settings

andreypopp/prefetch-context-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published