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