website/webpack.conf.js

14 lines
253 B
JavaScript
Raw Normal View History

2021-03-24 22:18:55 +01:00
const path = require('path');
module.exports = {
target: "web",
entry: {
app: ["./js/script.js"]
},
output: {
path: path.resolve(__dirname, "public/js"),
filename: "script.js",
2021-03-24 23:07:40 +01:00
libraryTarget: 'window'
2021-03-24 22:18:55 +01:00
},
mode: "production"
}