15 lines
315 B
JavaScript
Executable file
15 lines
315 B
JavaScript
Executable file
const path = require('path');
|
|
const webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
target: "web",
|
|
entry: {
|
|
app: ["./js/index.js"]
|
|
},
|
|
watch: true,
|
|
output:{
|
|
path: path.resolve(__dirname, "public/dist"),
|
|
filename: "index.js",
|
|
},
|
|
mode: "production"
|
|
} |