tettusud / merge-jsons-webpack-plugin

This plugin is used to merge json files into single json file,using glob or file names
https://npmjs.com/package/merge-jsons-webpack-plugin
Apache License 2.0
36 stars 20 forks source link

Duplicated webpack compile logs #19

Closed jkordas closed 7 years ago

jkordas commented 7 years ago

When I upgraded plugin from 1.0.7 to 1.0.8 duplicated entries started to show on console.

Hash: 12af48d7fdaba0bddfd9
Version: webpack 3.5.2
Time: 8391ms
...
Hash: 12af48d7fdaba0bddfd9
Version: webpack 3.5.2
Time: 8679ms
...
Hash: 12af48d7fdaba0bddfd9
Version: webpack 3.5.2
Time: 8957ms
...

It looks that number of duplicated logs is equal to number of objects in groupBy array defined in wepack config.

    new MergeJsonWebpackPlugin({
      output: {
        groupBy: [{
          pattern: './app/**/i18n/*-en_US.json',
          fileName: './dist/res/i18n/locale-en_US.json'
        }, {
          pattern: './app/**/i18n/*-de_DE.json',
          fileName: './res/i18n/locale-de_DE.json'
        }, {
          pattern: './app/**/i18n/*-de_DE.json',
          fileName: './dist/res/i18n/locale-de_DE.json'
        }]
      }
    })
tettusud commented 7 years ago

@jkordas , I am not able to see such logs when i run , could you check with and without the plugin to see if the plugin is real cause of it?