1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
const path = require("path"); const DemoPlugin = require("./plugins/demo-plugin.js"); const PATHS = { lib: path.join(__dirname, "src", "shake.js"), build: path.join(__dirname, "build"), }; module.exports = { entry: { lib: PATHS.lib, }, output: { path: PATHS.build, filename: "[name].js", }, plugins: [new DemoPlugin({ name: "demo" })], };