upward-resolver-plugin
A webpack resolver plugin to upward resolve file.
Install
npm i -D upward-resolver-webpack-plugin
webpack config
var UpwardResolverPlugin = var webpack =
plugins: syntax: '+' dir: '.'
Example
/root /a /b /c index.js hello.js
In /root/a/b/c/index.js
Then /root/a/hello.js
will be resolved.