admin管理员组文章数量:1391987
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
本文标签: nodejsHow to copy scss files to dist package in ReactJS with the same folder structureStack Overflow
版权声明:本文标题:node.js - How to copy scss files to dist package in ReactJS with the same folder structure - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744735566a2622306.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论