node.js - How can I make webpack skip an require -


how can make webpack skip occurences of

require('shelljs/global'); 

in source files? want make bundle of source files keep require('shelljs/global') in files , not bundle shelljs/global.

thank in advance

thomas

you can use ignore plugin.

add plugin in webpack.config.js:

plugins: [   new webpack.ignoreplugin(/shelljs\/global/), ], 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -