process-loader

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

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;
            }
          }
        }
      }
    ]
  }
}

Metadata

  • MIT
  • Whatever
  • yuhr
  • released 6/16/2017

Downloads

Maintainers