美文网首页
Webpack 4 WebWorker `window is n

Webpack 4 WebWorker `window is n

作者: 此昵称已被狗抢占 | 来源:发表于2018-08-31 11:40 被阅读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',
      },
    

    相关文章

      网友评论

          本文标题:Webpack 4 WebWorker `window is n

          本文链接:https://www.haomeiwen.com/subject/dvdswftx.html