webpack-custom-public-path-plugin

1.2.1 • Public • Published

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

Package Sidebar

Install

npm i webpack-custom-public-path-plugin

Weekly Downloads

1

Version

1.2.1

License

ISC

Unpacked Size

3.6 kB

Total Files

3

Last publish

Collaborators

  • mankowsj