# create-file-webpack

> Webpack plugin for creating the file with the particular content

Latest version **1.0.2** (published 2018-12-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install create-file-webpack
pnpm add create-file-webpack
yarn add create-file-webpack
bun add create-file-webpack
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-12-02 |
| First published | 2017-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Appius |
| Maintainers | appius |
| Keywords | webpack, webpack-plugin |

## Links

- npm: https://www.npmjs.com/package/create-file-webpack
- Repository: https://github.com/Appius/create-file-webpack
- Homepage: https://github.com/Appius/create-file-webpack#readme
- Issues: https://github.com/Appius/create-file-webpack/issues
- npm.io page: https://npm.io/package/create-file-webpack

## Dependencies (2)

- [path](https://npm.io/package/path.md) ^0.12.7
- [write](https://npm.io/package/write.md) ^1.0.3

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-12-02
- 1.0.1 — 2018-12-02
- 1.0.0 — 2017-10-09

## README

# Create file plugin for WebPack
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

Very simple plugin to create a file at the end of the build process with the particular text.

## Installation
```
npm i create-file-webpack --save-dev
```

## Usage
```js
const CreateFileWebpack = require('create-file-webpack')

// webpack config
{
  plugins: [
    new CreateFileWebpack({options})
  ]
}
```

## List of possible options:

````js
var opts = {
    // path to folder in which the file will be created
    path: './dist',
    // file name
    fileName: 'index.js',
    // content of the file
    content: 'export * from ./module.umd.js'
};
````

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