File Concatenation Plugin
A dead simple webpack plugin for concatenating files together.
// webpack.config.jsconst FileConcatenationPlugin =moduleexports =plugins:// ...other plugins// These paths are relative to output.pathsource: 'foo/*.css'destination: 'styles.css'
||-||A glob path specifying the files you would like to concatenate|
||-||The file you would like to output the concatenated text to|
||True will delete the source files being concatenated|
||True will append to the destination file instead of overriding it|
How do I write multiple destination files?
To write multiple destination files, or to specify multiple source globs, simply create multiple instances of the
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.