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
Post a Comment