(webpack) adding webpack for dependencies bundling, .gitignore and .npmignore
This commit is contained in:
16
webpack.config.js
Normal file
16
webpack.config.js
Normal file
@ -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
|
Reference in New Issue
Block a user