-
Notifications
You must be signed in to change notification settings - Fork 85
feat: add publicPath options #52
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
Conversation
Co-Authored-By: Jason Miller <developit@users.noreply.github.com>
|
I was just about to submit similar PR with added "name" field (will submit this pr once this lands). @developit it looks like failing ci is not related to the change / rather some package. Do you have any idea on what is causing it, I'd be up to submit commit to fix this, as this PR enables workerize loader to be used in next.js #80 |
|
Tested and confirm that module.exports = {
webpack: (config, params) => {
config.module.rules.push({
test: /\.worker\.(js|ts)$/,
loader: 'workerize-loader',
options: {
name: 'static/[hash]',
publicPath: '/_next/'
},
});
config.output.globalObject = 'self';
return config
}
}; |
|
Apologies for the super slow merge here! I'm fixing the CI, you're right about it being totally unrelated. |
|
@QingWei-Li any chance you could merge this please? |
|
@iljadaderko I'm not a maintainer. We need @developit to merge. |
|
@developit any chance you could merge this please? |
|
Released in 1.3.0. |
See https://github.com/webpack-contrib/worker-loader/#publicpath