Etienne
11/03/2021, 8:17 PMresources
inside a Kotlin/JS library, making them accessible to dependents? I'm not having much luck finding docs on the subject.Big Chungus
11/03/2021, 8:24 PMBig Chungus
11/03/2021, 8:26 PMEtienne
11/03/2021, 8:27 PMEtienne
11/03/2021, 9:06 PMTomáš Hubálek
11/16/2021, 9:40 AM@JsModule("./asset/css/my.css")
external val cssFile: dynamic
but it looks like kotlin is trying to parse CSS file as I'm getting
Module parse failed: Unexpected character '@' (3:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See <https://webpack.js.org/concepts#loaders>
| /* fonts import */
|
> @import url('<https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400;500;700&display=swap>');
| @import url('<https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;600;700&display=swap>');
| /* This CSS describes common and mobile UI. To see desktop specific CSS, please scroll down to
Tomáš Hubálek
11/16/2021, 9:47 AM@file:JsModule("./asset/css/mycss.css")
in empty file but still it is not perfect.Big Chungus
11/16/2021, 9:49 AMBig Chungus
11/16/2021, 9:49 AMTomáš Hubálek
11/16/2021, 9:51 AMbrowser {
runTask {
devServer = KotlinWebpackConfig.DevServer(
...
)
}
}
?Big Chungus
11/16/2021, 9:52 AMTomáš Hubálek
11/16/2021, 9:53 AMBig Chungus
11/16/2021, 9:53 AMBig Chungus
11/16/2021, 9:53 AMTomáš Hubálek
11/16/2021, 9:53 AMBig Chungus
11/16/2021, 9:54 AM