process-loader

1.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i process-loader

Weekly Downloads

2

Version

1.1.1

License

MIT

Last publish

Collaborators

  • yuhr