Skip to content

A repoducition repo for issue when using function public path in webpack with mini-css-extract-plugin

Notifications You must be signed in to change notification settings

roland-reed/mini-css-extract-plugin-function-public-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reproduce steps

  • pnpm i
  • pnpx webpack

The following errors are expected:

assets by status 822 bytes [cached] 1 asset
runtime modules 663 bytes 3 modules
cacheable modules 71 bytes
  ./src/index.js 32 bytes [built] [code generated]
  ./src/index.css 39 bytes [built] [code generated] [1 error]

ERROR in ./src/index.css
Module build failed (from ./node_modules/.pnpm/[email protected][email protected]/node_modules/mini-css-extract-plugin/dist/loader.js):
TypeError: publicPath.replace is not a function
    at Object.pitch (/Users/username/Workspace/test/webpack-demo/node_modules/.pnpm/[email protected][email protected]/node_modules/mini-css-extract-plugin/dist/loader.js:176:114)
 @ ./src/index.js 1:0-21

webpack 5.64.4 compiled with 1 error in 285 ms

About

A repoducition repo for issue when using function public path in webpack with mini-css-extract-plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published