1.2.1 • Published 5 years ago

webpack-custom-public-path-plugin v1.2.1

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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