webpack-concat
v0.0.4
Published
Plugin for Concating files in Webpack 4
Downloads
929
Maintainers
Readme
webpack-concat-plugin
Concat files for Webpack 4.X
###Example
const WebPackConcatPlugin = require('webpack-concat');
module.exports = {
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: {
loader: "babel-loader"
}
}
]
},
// it will concat **files** in given order and
// concat them into single **output** file
plugins: [
new WebPackConcatPlugin({
buildPath: ['build', 'prod'],
output: 'output.js',
files: ['file1.js', 'file2.js']
}),
]
};