Javascript Webpack 2.0进程和模块Directores配置指令的迁移

Javascript Webpack 2.0进程和模块Directores配置指令的迁移,javascript,webpack,Javascript,Webpack,我需要将webpack配置迁移到webpack 2.0。Webpack正在抱怨进度和模块目录如下: progress: true, resolve: { modulesDirectories: [ 'src', 'node_modules' ], extensions: ['', '.json', '.js', '.jsx'] }, 如何重写这些配置iTen以支持webpack 2.0?解析。模块目录已合并到(来自官方)。只需将其重命名为

我需要将webpack配置迁移到webpack 2.0。Webpack正在抱怨
进度
模块目录
如下:

progress: true,
  resolve: {
    modulesDirectories: [
      'src',
      'node_modules'
    ],
    extensions: ['', '.json', '.js', '.jsx']
  },

如何重写这些配置iTen以支持webpack 2.0?

解析。模块目录已合并到(来自官方)。只需将其重命名为
模块

resolve: {
  modules: [
    'src',
    'node_modules'
  ],
  extensions: ['', '.json', '.js', '.jsx']
},
progress
选项不再存在,您可以在CLI中使用
--progress
标志:

webpack --progress [other options]
webpack dev server
也支持它:

webpack-dev-server --progress [other options]

resolve.modulesDirectories
已合并到(来自官方)。只需将其重命名为
模块

resolve: {
  modules: [
    'src',
    'node_modules'
  ],
  extensions: ['', '.json', '.js', '.jsx']
},
progress
选项不再存在,您可以在CLI中使用
--progress
标志:

webpack --progress [other options]
webpack dev server
也支持它:

webpack-dev-server --progress [other options]