webpack-concat

0.0.4 • Public • Published

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']
        }),
    ]
};
 
 

Package Sidebar

Install

npm i webpack-concat

Weekly Downloads

87

Version

0.0.4

License

MIT

Unpacked Size

2.67 kB

Total Files

3

Last publish

Collaborators

  • saiumeshdhanewar