-
-
Notifications
You must be signed in to change notification settings - Fork 256
[v1.1.8] publicPath does not work with protocol/absolute URLs #252
Comments
It also breaks |
It also breaks nested relative path : |
This also breaks our case using url-loader while having output.publicPath set to for example "./lib/": {
test: /\.(gif|png|svg|jpeg|jpg)(\?v=[a-z0-9]\.[a-z0-9]\.[a-z0-9])?$/,
use: [
{
loader: 'url-loader',
options: {
limit: 8192,
name: '[name].[ext]',
outputPath: 'images/',
publicPath: '../'
}
}
]
} Old Version produced: |
I think this is not a bug, this is a fix : https://github.com/webpack-contrib/file-loader/releases/tag/v1.1.7
But it is a breaking change, should have it been done at least in a minor version ? |
Okay thanks. |
Released in |
I could be misusing this option but up to/including 1.1.7,
using the publicPath for absolute URLs like
publicPath: "https://my.cdn/"
was possible.In 1.1.8 due to this change:
26e47ca#diff-1fdf421c05c1140f6d71444ea2b27638R46
(replacing concat with path.join)
it is not possible and the // characters are getting replaced with one / rendering the absolute URL invalid...
Is there another way to configure CDN / custom absolute URLs?
ie. I want to serve some files from a different protocol/host than the rest of the app...
The text was updated successfully, but these errors were encountered: