npm.io
2.1.5 • Published 7 years ago

webpack-one-to-one-plugin

Licence
ISC
Version
2.1.5
Deps
0
Size
16 kB
Vulns
0
Weekly
0
Stars
1

webpack-one-to-one-plugin

Allow to make webpack build without bundling to one file. This plugin will emit all files in the dependency tree to output.path as separate files.

Fork of this plugin, but with some fixes and refactoring, also support webpack 3 and webpack 4

Install

npm install -D webpack-one-to-one-plugin

Usage

In your webpack.config.js:

const path = require('path');
const OneToOnePlugin = require('webpack-one-to-one-plugin');
{
    plugins: [
        new OneToOnePlugin({
            ignorePattern: /node_modules/ // default,
            path: path.join(__dirname, 'unbundled-out') // defaults to `output.path`
        })
    ]
}

Keywords