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.
import concat from '@vituum/vite-plugin-concat'
export default {
plugins: [
concat({
input: ['main.js']
})
]
}
- Read the docs to learn more about the plugin options.