Unexpected [path] in file-loader
For my image location: /src/assets/bitmap/sample.jpg Given are the key configurations: context: resolve('src') output: { path: resolve('builds/web'), publicPath: '', filename: ifProd('[name].[chunkHash].js', '[name].js') }, ... loaders: [ { test: /\.(png|jpg|jpeg)/, loader: 'file-loader?name=[path][name].[ext]?[hash]' } ] I am expecting output structure for the image that looks like this: /builds/web/assets/bitmap/sample.jpg Instead, I get this: /builds/web/src/assets/bitmap/sample.jpg How do I tell the file-loader that output path needs to be relative to /src and not / ? After 2 days of trial