Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Deprecate this plugin and suggest using the BannerPlugin instead #66

Open
sunesimonsen opened this issue Nov 17, 2022 · 0 comments
Open

Comments

@sunesimonsen
Copy link

sunesimonsen commented Nov 17, 2022

You can achieve the same kind of functionality this way:

    new webpack.BannerPlugin({
      entryOnly: true,
      include: options.bundleName
        ? options.bundleName + ".js"
        : /\.js$/,
      raw: true,
      banner: 'console.log("Injected")',
    }).apply(compiler);
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant