fkrauthan
10/27/2020, 3:14 AMjs("require('normalize.css/normalize.css')")
I can include a npm packaged stylesheet into my kotlinjs project. But what If I want below that import a custom stylesheet that is specific to this project? I've tried
js("require('./style.css')")
as style.css
is in the resources
folder but it complains that it can't find that fileRobert Jaros
10/27/2020, 7:12 AMrequire("style.css")
fkrauthan
10/27/2020, 4:07 PMrequire
in my codebase do I need to import a library to make it available?Robert Jaros
10/27/2020, 4:10 PMexternal fun require(name: String): dynamic
fkrauthan
10/27/2020, 4:16 PMjs("require('./style.css')")
also work? as it will evaluate to the same at the end and webpack should be able to pickup my style file? But I got the error message that the style.css
was not foundRobert Jaros
10/27/2020, 4:20 PMRobert Jaros
10/27/2020, 4:21 PMconfig.resolve.modules.push("../../processedResources/js/main");
to a *.js file in webpack.config.d
directoryRobert Jaros
10/27/2020, 4:22 PMRobert Jaros
10/27/2020, 4:25 PMRobert Jaros
10/27/2020, 4:26 PMfkrauthan
10/27/2020, 4:28 PM./
. But its very strange that there official doc references require
as well but it is not a default external definition for browser projectsturansky
10/28/2020, 12:27 AMsrc/main/resources
folder will be available for require