Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Custom filename and chunkFilename support #82

Merged
merged 3 commits into from
Jun 23, 2020
Merged

Custom filename and chunkFilename support #82

merged 3 commits into from
Jun 23, 2020

Conversation

developit
Copy link
Collaborator

This adds support for specifying custom templates for filename and chunkFilename when instantiating WorkerPlugin in webpack.config.js:

new WorkerPlugin({
    filename: '[name].[hash:5].js',
    chunkFilename: '[name].[hash:5].js',
})

The config properties are also supported as loader parameters:

import Worker from "worker-plugin/loader?filename=foo.[hash:5].js!./worker";

This fixes #76.

@developit developit merged commit 00a3810 into master Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is it possible not to include the .worker. in the filename?
1 participant