Skip to content

Commit

Permalink
support more options in webpack configuration (see also storybookjs#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
BowlingX committed Apr 4, 2016
1 parent 43e8870 commit 1e24a2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import fs from 'fs';

const logger = console;

const config = {
let config = {
devtool: 'cheap-module-eval-source-map',
entry: {
admin: [
Expand Down Expand Up @@ -77,6 +77,10 @@ if (fs.existsSync(customConfigPath)) {
logger.info(' => Loading custom webpack plugins.');
config.plugins = config.plugins.concat(customConfig.plugins);
}

delete customConfig.plugins;
delete customConfig.loaders;
config = { ...config, customConfig }
}

export default config;

0 comments on commit 1e24a2d

Please sign in to comment.