0.9.0 • Published 4 months ago

webpack-copy-bundle v0.9.0

Weekly downloads
111
License
MIT
Repository
github
Last release
4 months ago

Webpack Copy Bundle Plugin

NPM License Coverage Downloads Build

Webpack plugin to copy your bundle after a successful build.

In some cases you might want to copy your bundle to a directory after a successful build. However, Webpack does not allow you to do these 'out-of-source' builds. You can use the standard Webpack Copy Plugin, however then you need to manually copy all related files (bundle, source-map, etc.). To make this a bit easier you can use the Webpack Copy Bundle Plugin

Using this plugin you can give a list of bundles to copy and where to copy them to. The plugin takes care of copying all of the related files to the output directory.

Installation

npm install webpack-copy-bundle --save-dev

Usage

const WebpackCopyBundle = require('./src');

module.exports = {

    entry: './src/index.js',

    plugins: [
        new WebpackCopyBundle({
            main: '../example/folder',
        })
    ]
};

Example of multiple entries:

const WebpackCopyBundle = require('./src');

module.exports = {

    entry: {
        main: './src/index.js',
        worker: './src/worker.js'
    },

    plugins: [
        new WebpackCopyBundle({
            main: '../example/folder',
            worker: '../example/folder/worker',
        })
    ]
};
0.9.0

4 months ago

0.8.0

10 months ago

0.7.0

1 year ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.4

3 years ago

0.3.2

3 years ago

0.3.3

3 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago