I have a set of files in my project's src/main/resources folder - such as index.html, myproject.css, i18n.js
When I run webpack only one file is automatically copied over to the bundle, namely 118n.js. Why does this get bundled but nothing else?
I have a set of files in my project's src/main/resources folder - such as index.html, myproject.css, i18n.js
When I run webpack only one file is automatically copied over to the bundle, namely 118n.js. Why does this get bundled but nothing else?
Currently, all the
.jsfiles on the classpath are eligible to be bundled. This is why youri18n.jsfile is included in the resulting bundle.Note, however, that it is not planned to continue to support this behavior (relying on
.jsfiles on the classpath). Instead, you should include which resources are eligible to be bundled with thejsSourceDirectoriessetting key. For instance, to include all the files of thesrc/main/resourcesdirectory: