strings-webpack-plugin

print strings found in the webpack output that match a whitelist of strings

Usage no npm install needed!

<script type="module">
  import stringsWebpackPlugin from 'https://cdn.skypack.dev/strings-webpack-plugin';
</script>

README

strings-webpack-plugin

print strings found in the output that match a whitelist of strings

Usage

webpack.config.js

var StringsPlugin = require('strings-webpack-plugin');

module.exports = {
   ...
   plugins: [
        new StringsPlugin({
            strings: ['asdf']
            file: path.resolve(__dirname, 'strings.json')
        })
    ]
}