Skip to content

Commit 8b7a83e

Browse files
authored
Use multi entry/output config for webpack (#11)
1 parent f8f3423 commit 8b7a83e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/install/webpack/webpack.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ const webpack = require('webpack')
33

44
module.exports = {
55
mode: "production",
6-
entry: "./app/javascript/application.js",
6+
entry: {
7+
application: "./app/javascript/application.js"
8+
},
79
output: {
8-
filename: "application.js",
10+
filename: "[name].js",
911
path: path.resolve(__dirname, "app/assets/builds"),
1012
},
1113
plugins: [

0 commit comments

Comments
 (0)