webpack-symlink-plugin

1.0.1 • Public • Published

webpack-symlink-plugin

before webpack compile, create directory symlink.

📦 Install

npm install webpack-symlink-plugin

🔨 Usage

const WebpackSymlinkPlugin = require("webpack-symlink-plugin");

const webpackConfig = {
    plugins: [
        new WebpackSymlinkPlugin(options),
    ],
};

module.exports = webpackConfig;

Options and Defaults

new WebpackSymlinkPlugin({
    // multi symlink maps
    symlinkList: [
        {
            // absolute path to source
            src: "path/to/src/directory",
            // absolute path to destination
            dest,
        },
    ],
    // success callback
    onSuccess: function() {},
})

Readme

Keywords

Package Sidebar

Install

npm i webpack-symlink-plugin

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

4.1 kB

Total Files

4

Last publish

Collaborators

  • wjfei