0.1.1 • Published 3 years ago

concat-webpack-plugin v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Concat Webpack Plugin

A Webpack plugin to run concat on the output files of webpack.

How to use it

This a pretty straight forward plugin. All you need to do is install the plugin and add it to the webpack config. It takes a single parameter which is the output file path.

npm install --save-dev concat-webpack-plugin
// webpack.config.js
const { ConcatWebpackPlugin } = require('concat-webpack-plugin');

module.exports = {
  output: {
    // The plugin will concat all the ".js" files it finds in this folder after compilation
    path: 'dist/project', 
  },
  plugins: [
    new ConcatWebpackPlugin('dist/concatenated/main.js'),
  ],
};