(webpack) adding webpack for dependencies bundling, .gitignore and .npmignore See merge request framasoft/peertube/peertube-plugin-quickstart!1master
commit
9061aabe2b
@ -0,0 +1,3 @@ |
|||||||
|
node_modules |
||||||
|
.cache |
||||||
|
dist |
@ -0,0 +1 @@ |
|||||||
|
LICENSE |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,16 @@ |
|||||||
|
const path = require("path") |
||||||
|
|
||||||
|
const EsmWebpackPlugin = require("@purtuga/esm-webpack-plugin") |
||||||
|
|
||||||
|
let config = { |
||||||
|
entry: "./client/common-client-plugin.js", |
||||||
|
output: { |
||||||
|
path: path.resolve(__dirname, "./dist"), |
||||||
|
filename: "./common-client-plugin.js", |
||||||
|
library: "script", |
||||||
|
libraryTarget: "var" |
||||||
|
}, |
||||||
|
plugins: [new EsmWebpackPlugin()] |
||||||
|
} |
||||||
|
|
||||||
|
module.exports = config |
Loading…
Reference in new issue