How do you setup static paths in javascript? -


this may silly question, can't seem find simple answer via google

lets have react component library, full of display component, , want included of smart/container components. because used on place, i'd rather not use relative paths every different component in app import component '../../library/component' , ../library/component , ../../../library/component etc...

how set had import component 'library/component' wherever in app wanted be?

asked way, prescribed way setup static paths in javascript?

with webpack using way of "several root directories". builder find modules several paths. , can write this: "./lodash" instead "../../../../lodash". this more info.


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -