Make absolute paths relative to the project root in Webpack : <p>I find that I need to type <code>../</code> a lot to <code>require()</code> files. My directory structure includes these:</p>

<pre><code>js/
  components/
    ...
  actions/
    ...
</code></pre>

<p>From the components folder, I need to do <code>import foo from '../actions/fooAction'</code>. Is it possible to make the root directory the root of the project? I.e. I want to do <code>import foo from '/actions/fooAction'</code> instead. I tried setting Webpack's <code>resolve.root</code> option, but it didn't seem to do anything.</p>
