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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    8
  • 1.1.0
    1
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i process-loader

Weekly Downloads

10

Version

1.1.1

License

MIT

Last publish

Collaborators

  • yuhr