So I am trying to create only css files or only js files at a time from the index.js file, which import few react component.
.
├── index.js
├── Header
├── index.js
└── styles.scss
└── Body
├── index.js
└── styles.scss
└── Footer
├── index.js
└── styles.scss
├── Common
└── Button
├── index.js
└── styles.scss
└── Label
├── index.js
└── styles.scss
Now how do I create two different task npm run build:js
and npm run build:scss
to get js and css differently?
Sometimes I just need to change the styles, but I had to a build for js as well. To prevent that I am trying this out.
EDIT1 - There's one more thing I forgot to add,
All these Header, Body, Footer
components imports different molecule level components like Button, Label
. At the end the outcome expected is
.
├── Header.js
├── Header.scss
├── Body.js
├── Body.scss
├── Footer.js
└── Footer.scss