Skip to content

yuhr/process-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Process Loader

A loader for webpack that lets you work with the content of file.

Install

npm install --save-dev process-loader

Usage

module.exports = {
  module: {
    rules: [
      {
        test: /\.html$/,
        use: {
          loader: 'process-loader',
          options: {
            process: (content, path) => {
              // some pretty stuff
              console.log(path);
              console.log(content);
              return content;
            }
          }
        }
      }
    ]
  }
}

About

No description or website provided.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors