0.0.4 • Published 5 years ago

webpack-concat v0.0.4

Weekly downloads
11
License
MIT
Repository
github
Last release
5 years ago

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