shellscape / webpack-manifest-plugin

webpack plugin for generating asset manifests
MIT License
1.43k stars 186 forks source link

Invalid paths in manifest file #261

Closed bigskillet closed 3 years ago

bigskillet commented 3 years ago

I'm still having to use the map filter with the latest release (3.1.1) to remove the source path, as referenced in #238. Without it, the source path is still being added to assets like images, etc:

new WebpackManifestPlugin({
  fileName: 'assets/manifest.json',
  basePath: '/assets/'
});
{
  "/assets/main.css": "/assets/main.b0b16a1f.css",
  "/assets/main.js": "/assets/main.9c57e099.js",
  "/assets/assets/apple-touch-icon.png": "/assets/apple-touch-icon.png",
  "/assets/main.b0b16a1f.css.map": "/assets/main.b0b16a1f.css.map",
  "/assets/main.9c57e099.js.map": "/assets/main.9c57e099.js.map"
}
shellscape commented 3 years ago

Duplicate post and you removed the template.