Skip to content

saiumesh535/webpack-concat-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"
                }
            }
        ]
    },
    // build path -> path where files are located
    // 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']
        }),
    ]
};

About

Concat files for Webpack 4.X

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages