webpack/webpack — pull request #543 by DenisIzmaylov (2014-10-20 18:05:35+00:00)
Title: Support callbacks in newResource

Provides a feature which is explained here https://github.com/webpack/webpack/issues/541

```javascript
...
plugins: [
new webpack.NormalModuleReplacementPlugin(
/\.css$/,
function (request) {
request.context = path.join(
buildSettings.destPath,
path.relative(buildSettings.sourcePath, request.context)
);
}
)
]
...
```