website/webpack.conf.js
2021-03-24 23:07:40 +01:00

13 lines
253 B
JavaScript

const path = require('path');
module.exports = {
target: "web",
entry: {
app: ["./js/script.js"]
},
output: {
path: path.resolve(__dirname, "public/js"),
filename: "script.js",
libraryTarget: 'window'
},
mode: "production"
}