You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
What is the best approach for setting the public path in runtime and
loading the stylsheet generated by extract-text-webpack-plugin so that the images used in the stylesheet will refer to the public path?
The text was updated successfully, but these errors were encountered:
Not an authoritative answer here, but I don't think this is possible. I've been dealing with a similar issue and the way I've handled it is to use several webpack rules with different filename tests and different publicPath values when calling .extract({ publicPath: ..., use: cssLoader }). It's not a full runtime solution, but it works if you have a limited set of publicPaths to support.
The use case would be building a client app without targeting a particular environment, and then at runtime populating __webpack_public_path__ with a server side printed value to a window variable like window.publicPath.
What is the best approach for setting the public path in runtime and
loading the stylsheet generated by extract-text-webpack-plugin so that the images used in the stylesheet will refer to the public path?
The text was updated successfully, but these errors were encountered: