Skip to content

Commit

Permalink
Merge pull request #155 from WebDevStudios/fix/incorrect-multiple-ent…
Browse files Browse the repository at this point in the history
…ries-webpack

Fixed :: WebPack not building files correctly.
  • Loading branch information
bplv112 authored Sep 13, 2022
2 parents da16cc4 + 38d03d5 commit 601c815
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
const path = require('path');

module.exports = {
entry: './app/index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'app')
entry: {
'bundle': './app/index.js',
'admin-bundle': './app/admin.js',
},
entry: './app/admin.js',
output: {
filename: 'admin-bundle.js',
filename: '[name].js',
path: path.resolve(__dirname, 'app')
},
module: {
Expand Down

0 comments on commit 601c815

Please sign in to comment.