emit-file-loader

0.0.2 • Public • Published

emit-file-loader

A Webpack loader that emits a file during the loader chain.

This is useful when distributing CSS or template files for others to use.

To use this loader, add it to an existing chain like so:

{
  test: /\.scss$/,
  use: [
    { loader: 'css-loader' },
    { loader: 'emit-raw-loader?output=dist/styles/[name].css' },
    { loader: 'sass-loader' }
  ],
}

The output query parameter uses name interpolation to determine where the raw content will be saved by the loader.

Installation

npm install --save-dev emit-file-loader

Readme

Keywords

Package Sidebar

Install

npm i emit-file-loader

Weekly Downloads

804

Version

0.0.2

License

MIT

Unpacked Size

1.8 kB

Total Files

3

Last publish

Collaborators

  • mortenson