shellscape/webpack-manifest-plugin

Webpack publicPath auto config not correctly interpreted

alexander-schranz opened this issue · 4 comments

  • Manifest Plugin Version: 5.0.0
  • Webpack Version: 5.73.0
  • Operating System (or Browser): Firefox Mac
  • Node Version: 14.18.1
  • Link to reproduction (⚠️ read below): https://replit.com/@alexander-schra/reproduction-template-manifest-publis-path-auto?v=1 (PS I'm not sure where npx wp is coming from but if forked an run npm install && npm run build) you will see auto is not handling as relative path instead compiled into the manifest.json:

Bildschirmfoto 2022-07-10 um 17 21 05

Expected Behavior

The publicPath: auto should be handled like documented in the webpack configuraiton.

https://webpack.js.org/guides/public-path/#automatic-publicpath

Actual Behavior

It is used as folder directory.

Please search the issues before opening a new one. This has been addressed a number of times.

Sorry I only did have a look at open issues.

I think the issue still is in the plugin and webpack will here fix nothing and will always provide you auto for the publicPath. So it is in responsibility of a plugin to take care of publicPath auto here.

I think manifest plugin should implement something like already provided by @bighoho123 so auto is correctly converted. #229

PS: I would recommend you "Pin" one of the issues to avoid more issues being created because of this.

Thanks for your input. I disagree that the plugin should be handling that scenario. Please feel free to use a fork which follows your preferences.