1.0.1 • Published 4 years ago

webpack-symlink-plugin v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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() {},
})
1.0.1

4 years ago