Closed developit closed 4 years ago
This adds support for specifying custom templates for filename and chunkFilename when instantiating WorkerPlugin in webpack.config.js:
filename
chunkFilename
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.
This adds support for specifying custom templates for
filename
andchunkFilename
when instantiating WorkerPlugin inwebpack.config.js
:The config properties are also supported as loader parameters:
This fixes #76.