markshapiro / webpack-merge-and-include-globally

Merge multiple files (js, css..) and include by running them "as is". Supports minify by custom transform and wildcard paths.
MIT License
102 stars 27 forks source link

Not working for empty entry point #57

Closed ayush000 closed 3 years ago

ayush000 commented 3 years ago

I'm using this plugin with webpack 5.10.0. In v2.1.26, if I specify an empty entry point in webpack config, the concatenated file is generated in the output directory. This is not the case with v2.2.3. E.g.

module.exports = {
  entry: {},
  output: {
    path: "..."
  },
  plugins: [
    new CleanWebpackPlugin({
      verbose: true
    }),
    // Used to merges all libs into single bundle
    new MergeIntoSingleFilePlugin({
      files: {
        "filename.min.js": ["file1path", "file2path"]
      }
    })
}

The above snippet generates filename.min.js for v2.1.26 but doesn't generate the file for v2.2.3. Is this expected change or a bug?

markshapiro commented 3 years ago

@ayush000 a bug resulting from fix of webpack 5 support, just fixed & published

ayush000 commented 3 years ago

Thanks. Working now