Webpack未将新文件编译到捆绑包中

Webpack未将新文件编译到捆绑包中,webpack,Webpack,我正在运行WebpackDevServer,它一直在提供旧文件,有什么想法吗?新捆绑包仍保留旧文件 当我运行webpack时,它会将新文件编译成一个新包 配置: module.exports = { context: __dirname + "/app", entry: "./main.js", output: { path: __dirname + "/dist", filename: "bundle.js" }, devtool: "#source-map

我正在运行WebpackDevServer,它一直在提供旧文件,有什么想法吗?新捆绑包仍保留旧文件

当我运行webpack时,它会将新文件编译成一个新包

配置:

module.exports = {
  context: __dirname + "/app",
  entry: "./main.js",
  output: {
    path: __dirname + "/dist",
    filename: "bundle.js"
  },
  devtool: "#source-map",
  module: {
    loaders: [
      // Transpile any JavaScript file:
      {test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader'}
    ]
  },
  resolve: {
    // you can now require('file') instead of require('file.js')
    extensions: ['', '.js', '.json']
  }
}

你能给我们看一下你的网页包和网页包的服务器配置吗?@我已经这样做了)哦,我没有deb服务器配置。据我所知,我将对其进行研究,服务器只动态构建文件并将其流式传输到浏览器(而不是像webpack本身那样构建文件)。查看创建者的评论:我不确定这是否解决了您的问题。不是真的,我只是希望它像grunt watch或ember cli一样工作