diff options
| author | mokha <mokha@cisco.com> | 2018-09-30 16:19:03 -0600 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2018-09-30 16:19:03 -0600 |
| commit | 99d499a1088ab804f9061f718bfe8180374b7941 (patch) | |
| tree | d00c3e3e14b23c4fc26b504e96927090f6bb0ca8 /webpack.plugin.js | |
| parent | 8b93bddb4758ae728b87f22143f11d6fb46f47db (diff) | |
* https://survivejs.com/webpack/extending/plugins/
Diffstat (limited to 'webpack.plugin.js')
| -rw-r--r-- | webpack.plugin.js | 17 |
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" })], +}; |
