webpack/grunt-webpack — pull request #33 by roddeh (2014-10-22 03:39:38+00:00)
Title: Implemented the 'resolve.root' option for webpack.

My project has a few different src directories that webpack needs to access to pull various resources. All of the other paths in the options for the task are converted to absolute paths, but the paths for resolve.root weren't getting converted so webpack couldn't find my resources.

My webpack.config.js looked something like the below. This pull request updates the paths in the root so that webpack can find all the necessary resources.

resolve: {
root: [
__dirname + "/src/stylus"
],
extensions: ["", ".coffee", ".js", ".styl"]
},

Hope it works well for you ;)

Cheers,
Simon