# emit-file-loader

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

Latest version **0.0.2** (published 2018-04-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install emit-file-loader
pnpm add emit-file-loader
yarn add emit-file-loader
bun add emit-file-loader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-04-15 |
| First published | 2018-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Samuel Mortenson |
| Maintainers | mortenson |
| Keywords | webpack, loader, file, emit |

## Links

- npm: https://www.npmjs.com/package/emit-file-loader
- Repository: https://github.com/mortenson/emit-file-loader
- Homepage: https://github.com/mortenson/emit-file-loader#readme
- Issues: https://github.com/mortenson/emit-file-loader/issues
- npm.io page: https://npm.io/package/emit-file-loader

## Dependencies (1)

- [loader-utils](https://npm.io/package/loader-utils.md) ^1.1.0

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-04-15
- 0.0.1 — 2018-03-12

## README

# 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](https://github.com/webpack/loader-utils#interpolatename)
to determine where the raw content will be saved by the loader.

# Installation

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

---
_Source: https://npm.io/package/emit-file-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
