Webpack 4 WebWorker `window is n

2018-08-31  本文已影响0人  此昵称已被狗抢占

globalObject: 'this',
https://github.com/webpack/webpack/issues/6642

module.exports = {
  entry: ['./src/index', './src/vendor'],
  output: {
    path: path.resolve('./build'),
    filename: '[name].js',
    publicPath: './',
    globalObject: 'this',
  },
上一篇下一篇

猜你喜欢

热点阅读