Skip to content

A plugin that lets you override the Webpack modules public path in webpage runtime.

Notifications You must be signed in to change notification settings

bartcorremans/webpack-runtime-public-path-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

webpack-runtime-public-path-plugin

A plugin that lets you override the Webpack modules public path in webpage runtime.

Configuration

const RuntimePublicPathPlugin = require("webpack-runtime-public-path-plugin")
    plugins: [
        ...
        new RuntimePublicPathPlugin({
            runtimePublicPath: "'/foo/bar/'"
        })
        ...
    ]

Result

/******/        // __webpack_public_path__
/******/        __webpack_require__.p = "/dist/";

/******/        // Dynamic assets path override (runtime-public-path-webpack-plugin)
/******/        __webpack_require__.p = ('/foo/bar/') || __webpack_require__.p;

About

A plugin that lets you override the Webpack modules public path in webpage runtime.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%