Skip to content

Commit

Permalink
Merge 64c64ff into 2728a31
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-haddix committed Feb 2, 2017
2 parents 2728a31 + 64c64ff commit 49bed94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"redux": "^3.6.0",
"uuid": "^3.0.0",
"webpack": "^1.13.3",
"webpack-merge": "^1.0.1",
"webpack-merge": "^2.6.1",
"webpack-sources": "^0.1.2"
},
"nyc": {
Expand Down
2 changes: 1 addition & 1 deletion src/webpackUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function generateConfiguration(entries = [], configuration = {}) {
}

entries.forEach((entry) => {
config.entry[entry.key] = entry.file;
config.entry[entry.key] = [entry.file];
})

return config;
Expand Down
2 changes: 1 addition & 1 deletion tests/webpackUtils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ test('generateConfiguration', (t) => {

const generatedConfig = generateConfiguration(entries, configuration);

t.deepEqual(generatedConfig.entry, { key1: 'file1', key2: 'file2' }, 'should add entries to configuration');
t.deepEqual(generatedConfig.entry, { key1: ['file1'], key2: ['file2'] }, 'should add entries to configuration');
t.equal(generatedConfig.module.loaders[1].loader, 'someLoader', 'should merge additional configurations with base configuration');
t.end()
})
Expand Down

0 comments on commit 49bed94

Please sign in to comment.