Skip to content

Instantly share code, notes, and snippets.

@gauravtiwari
Created July 2, 2016 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gauravtiwari/d7bcca0a8ed5eca216f7bdcb4b043c81 to your computer and use it in GitHub Desktop.
Save gauravtiwari/d7bcca0a8ed5eca216f7bdcb4b043c81 to your computer and use it in GitHub Desktop.
var config = require('./config.js');
var nodeExternals = require('webpack-node-externals');
// Ignore node_modules/* so all modules won't get bundled and include
// only whitelisted modules in bundle
config.externals = [nodeExternals({
whitelist: ['require', 'webpack', 'jquery']
})];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment