jamesandersen / string-replace-webpack-plugin

Replace string tokens in a bundle.
93 stars 27 forks source link

How to modify output files? #18

Open bennycode opened 7 years ago

bennycode commented 7 years ago

Hello, my webpack.config.js has the following definitions:

entry: {
  filename: './dist/commonjs/proteus.js'
},
output: {
  filename: 'proteus.js',
  library: 'proteus',
  libraryTarget: 'amd',
  path: './dist/amd'
}

Does the "string-replace-webpack-plugin" only edit the entry files or can it also replace strings in the output of my webpacked module?