To remove those redundant .js files you can use the webpack-remove-empty-scripts package.
webpack-remove-empty-scripts