webpack-custom-public-path-plugin
v1.2.1
Published
plugin to manage webpack publicPath option
Downloads
5
Readme
webpack-custom-public-path-plugin
This plugin is supposed to solve the problematic thing which is inability to change publicPath for css files only when lazy loading them using MiniCssExtractPlugin.
Example usage
config.plugins = [
new CustomPublicPath({
cssPublicPath: function doPath(href) {
return 'custom/path/to/lazy/css/';
}
})
];
config.plugins = [
new CustomPublicPath({
cssPublicPath: 'custom/path/'
})
];