With this rule :
{
test: /\.php$/,
type: "asset/resource",
generator: {
filename: "[path][name][ext]",
},
},
My webpack config output files on this directory "views/src/views/client". I would like to remove the first two directory from the path.
Expected output path "views/client"
With webpack 4, this was working very well with file-loader.context option (views/src). I donc know how to do the same with the new asset/module features of webpack 5.
does any one has an idea?