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
Post a Comment