Webpack 捆绑包中不包含文件的网页包

Webpack 捆绑包中不包含文件的网页包,webpack,pdf.js,Webpack,Pdf.js,网页包不包含依赖项的依赖项。 使用require('entry?dep的名称')需要此叶依赖项 和webpack.config.js: module: { loaders: [ { test: /\.html$/, loader: 'raw-loader' }, { exclude: [/\.html$/, /(node_modules|bower_components)/], loade

网页包不包含依赖项的依赖项。 使用
require('entry?dep的名称')
需要此叶依赖项

webpack.config.js

module: {
    loaders: [
      {
        test: /\.html$/,
        loader: 'raw-loader'
      },
      {
        exclude: [/\.html$/, /(node_modules|bower_components)/],
        loader: 'babel-loader',
        query: {
          presets: 'es2015',
        }
      }
    ]
  }
在输出包中,缺少的依赖项如下所示:

/* 38 */
/***/ function(module, exports) {

    /* (ignored) */

/***/ }

我遗漏了什么?

正如@async5所指出的,这是一种回归:

并且有必要手动添加workerSrc路径:

并分别创建捆绑包:

请参见第页的讨论