I have created a dist project by compiling my code with the command npx babel src/lib --out-dir dist
. But I see my SCSS and image files are missing. How can I get my CSS and images to dist folder ?
I tried by using npx webpack and observed, images and SCSS files getting copied only to root folder. But not according to the same folder structure as It was in src.
I have created a dist project by compiling my code with the command npx babel src/lib --out-dir dist
. But I see my SCSS and image files are missing. How can I get my CSS and images to dist folder ?
I tried by using npx webpack and observed, images and SCSS files getting copied only to root folder. But not according to the same folder structure as It was in src.
Share Improve this question edited Mar 18 at 13:15 Jean-Loup 3982 gold badges6 silver badges18 bronze badges asked Mar 12 at 18:03 Amarathun OshadieAmarathun Oshadie 132 bronze badges1 Answer
Reset to default 1Append --copy-files flag to your build command like this.
npx babel src/lib --out-dir dist --copy-files