In 3 simple steps.Continue reading
- src |- components ||- CatComponent.js ||- DogComponent.js - node_modules /* src/components/DogComponent.js */ import CatComponent from 'components';
For importing from another directive to work like imports from
node_modules like above, configure webpack.
If you @import a lot of scss/sass/css files, the style loader can take a looong time to finish loading. How to improve? Lets take a look at what each of them does: