Skip to content

Commit d6367be

Browse files
committed
refactor: update webpack config to match previous PHP minifier
1 parent ffec536 commit d6367be

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

webpack.config.js

+15-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
module.exports = {
2-
entry: [
3-
"./js/src/init.js",
4-
"./js/src/alerter.js",
5-
"./js/src/controls.js",
6-
"./js/src/map.js",
7-
"./js/src/markers.js",
8-
"./js/src/objects.js",
9-
"./js/src/socket.js",
10-
"./js/src/utils.js",
11-
],
2+
entry: {
3+
first: [
4+
"./js/src/init.js",
5+
"./js/src/alerter.js",
6+
"./js/src/map.js",
7+
"./js/src/markers.js",
8+
"./js/src/objects.js",
9+
"./js/src/socket.js",
10+
"./js/src/utils.js",
11+
],
12+
last: [
13+
"./js/src/controls.js",
14+
]
15+
},
1216
output: {
13-
filename: "bundle.js"
17+
filename: "[name]-bundle.js"
1418
}
1519
};

0 commit comments

Comments
 (0)