We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I created the followin issue swashata/wp-webpack-script#1230 on the wp-webpack-script repo but I think it's better located here
For using CDNs, this variable needs to be set to the CDNs URL instead of the WordPress URL. The docs already mention this case:
For example, we could very much put all the files inside dist to a CDN, and change publicPath to https://cdn.example.com/path/to/asset/dir.
I checked the source code and I think this could easily be solved by adding a filter to the Enqueue::getUrl() method before returning the value.
Enqueue::getUrl()
wpackio-enqueue/inc/Enqueue.php
Lines 398 to 400 in 8a5604f
Any thoughts about that?
The text was updated successfully, but these errors were encountered:
Yes you are correct. Also along with filtering the output of getUrl, I think we can also filter the output of printPublicPath for more extensibility.
getUrl
printPublicPath
Lines 145 to 149 in 8a5604f
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I created the followin issue swashata/wp-webpack-script#1230 on the wp-webpack-script repo but I think it's better located here
Problem Description
For using CDNs, this variable needs to be set to the CDNs URL instead of the WordPress URL.
The docs already mention this case:
For example, we could very much put all the files inside dist to a CDN, and change publicPath to https://cdn.example.com/path/to/asset/dir.
Possible Solution
I checked the source code and I think this could easily be solved by adding a filter to the
Enqueue::getUrl()
method before returning the value.wpackio-enqueue/inc/Enqueue.php
Lines 398 to 400 in 8a5604f
Any thoughts about that?
The text was updated successfully, but these errors were encountered: