An open API service indexing awesome lists of open source software.

https://github.com/vituum/vite-plugin-concat

⚡🔗 Vite plugin for concatenating files together, handy especially for old projects that used gulp-concat or grunt-concat
https://github.com/vituum/vite-plugin-concat

Last synced: 6 months ago
JSON representation

⚡🔗 Vite plugin for concatenating files together, handy especially for old projects that used gulp-concat or grunt-concat

Awesome Lists containing this project

README

          

npm package
node compatility

# ⚡️🔗 ViteConcat

Vite plugin for concatenating files together, handy especially for old projects that used gulp-concat or grunt-concat for concatenating `.js` files together.

Automatically concatenates all `import './paths'` together into single file, additionally you can provide glob of files which should be also concated into single file via `files` option.

```js
import concat from '@vituum/vite-plugin-concat'

export default {
plugins: [
concat({
input: ['main.js']
})
]
}
```

* Read the [docs](https://vituum.dev/plugins/concat.html) to learn more about the plugin options.

### Requirements

- [Node.js LTS (16.x)](https://nodejs.org/en/download/)
- [Vite](https://vitejs.dev/)