# webpack-file-concat-plugin

> A dead simple webpack plugin for concatenating files together

Latest version **0.0.1** (published 2020-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-file-concat-plugin
pnpm add webpack-file-concat-plugin
yarn add webpack-file-concat-plugin
bun add webpack-file-concat-plugin
```

## 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.1 |
| Published | 2020-09-03 |
| First published | 2020-09-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zach Posten |
| Maintainers | zposten |
| Keywords | webpack, file, files, plugin, concat, concatenation, combine, module |

## Links

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

## Dependencies (2)

- [glob](https://npm.io/package/glob.md) ^7.1.6
- [fs-extra](https://npm.io/package/fs-extra.md) ^9.0.1

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2020-09-03

## README

# File Concatenation Plugin

A dead simple webpack plugin for concatenating files together.

## Usage

```js
// webpack.config.js
const FileConcatenationPlugin = require('webpack-file-concat-plugin')

module.exports = {
  plugins: [
    // ...other plugins
    new FileConcatenationPlugin({
      // These paths are relative to output.path
      source: 'foo/*.css',
      destination: 'styles.css',
    }),
  ],
}
```

## Options

| Option              | Type      | Default | Description                                                       |
| ------------------- | --------- | ------- | ----------------------------------------------------------------- |
| source              | `string`  | -       | A glob path specifying the files you would like to concatenate    |
| destination         | `string`  | -       | The file you would like to output the concatenated text to        |
| deleteSourceFiles   | `boolean` | `false` | True will delete the source files being concatenated              |
| appendToDestination | `boolean` | `false` | True will append to the destination file instead of overriding it |

## FAQ

### How do I write multiple destination files?

To write multiple destination files, or to specify multiple source globs, simply create multiple instances of the `FileConcatenationPlugin`.

## Alternatives

There are several other webpack plugins relating to concatenation of files that might suit your needs if the File Concatenation Plugin doesn't.

Each of these are more complicated than File Concatenation Plugin, which could be good or bad depending on what you're looking for.

- [ModuleConcatenationPlugin](https://webpack.js.org/plugins/module-concatenation-plugin)
- [webpack-concat-plugin](https://www.npmjs.com/package/webpack-concat-plugin)
- [webpack-concat-files-plugin](https://www.npmjs.com/package/webpack-concat-files-plugin)

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