when upgrading webpack to version 5.64.0, module.rule.generator.publicPath has stopped working properly.
module.exports={
// ....,
generator: {
filename: devMode
? "../fonts/[name][ext][query]"
: "fonts/[name][hash][ext][query]",
publicPath: "fonts",
},
}
and I have this error:
ERROR in ./src/frontlib.sass
Module build failed (from ./node_modules/mini-css-extract-plugi/dist/loader.js):
HookWebpackError: Invalid URL at tryRunOrWebpackError
Now I still have the same error even if I downgrade Webpack to the previous version.
How to set generator publicPath into the new Webpack version?