summaryrefslogtreecommitdiff
path: root/webpack.plugin.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.plugin.js')
-rw-r--r--webpack.plugin.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/webpack.plugin.js b/webpack.plugin.js
new file mode 100644
index 0000000..eeea054
--- /dev/null
+++ b/webpack.plugin.js
@@ -0,0 +1,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" })],
+};