runtime-public-path-webpack-plugin
v1.0.0-rc.1
Published
Specify webpack public path from runtime
Downloads
5
Readme
runtime-public-path-webpack-plugin
A plugin that lets you override the Webpack modules public path in webpage runtime.
Configuration
{
"output": {
"runtimePublicPath": "window.whatever()";
}
}
Result
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "/static/bundles/";
/******/ // Dynamic assets path override (runtime-public-path-webpack-plugin)
/******/ __webpack_require__.p = (window.whatever()) || __webpack_require__.p;