JetBrains/kotlin-wrappers

Tic-Tac-Toe example can't run perfectly. how to import .css?

leerenbo opened this issue · 2 comments

According to the Tic-Tac-Toe example code prompts, I added require("TicTacToe.css") in fun main(){...}, but there is no require(String) method available and thus it can't be compiled.

        browser() {
            commonWebpackConfig() {
                cssSupport {
                    enabled.set(true)
                }
            }
        }

Webpack support is open, how to compile to import xxx.css in compiled.js file?
How can I properly import the CSS styles?

Looks like question for #javascript slack channel ;)

@turansky NO,it's not react example.
it's kotlin-wrappers example with .kt