Skip to content

Instantly share code, notes, and snippets.

@gauravtiwari
Created July 2, 2016 16:49
Show Gist options
  • Save gauravtiwari/a38de97899778460029fdd3b458a326c to your computer and use it in GitHub Desktop.
Save gauravtiwari/a38de97899778460029fdd3b458a326c to your computer and use it in GitHub Desktop.
/*
Split webpack config into multiple files
*/
var requireDir = require('require-dir');
// Require the webpack.config directory
var configs = requireDir('./webpack.configs');
// Lets export the config
module.exports = configs.config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment