Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

webpack-custom-public-path-plugin

mankowsj12ISC1.2.1

plugin to manage webpack publicPath option

webpack, plugin, publicPath

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/'
  })
];