webpack-resolve-in-paths-plugin
v1.0.0
Published
[](https://coveralls.io/github/dimanech/webpack-resolve-in-paths-plugin?branch=master) [;
module.exports = {
// ...
resolve: {
plugins: [
new ResolveInPaths({paths: [
path.resolve(__dirname, 'brand/js'),
path.resolve(__dirname, 'core/js')
]})
]
}
}Imports in components always should be relative to components root
import c from "./components/c.js"; // instead of "./c.js"It would be great if we could deal with imports transparently, but as most simple solution it use explicit relative to components root paths.
Licence
Copyright © 2020, D. Nechepurenko. Published under MIT license.
