Css support

This commit is contained in:
Alexander Nozik 2021-03-03 21:10:52 +03:00
parent 7971335558
commit 76fd9dfa57
2 changed files with 12 additions and 3 deletions

View File

@ -21,6 +21,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.8.4]
### Added
- Adaptive support for host OS in native
- CSS support for JS targets
### Changed
- Kotlin 1.4.31
- Coroutines 1.4.3

View File

@ -11,7 +11,6 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import ru.mipt.npm.gradle.internal.applyRepos
import ru.mipt.npm.gradle.internal.applySettings
import ru.mipt.npm.gradle.internal.fromJsDependencies
open class KScienceCommonPlugin : Plugin<Project> {
@ -62,7 +61,11 @@ open class KScienceCommonPlugin : Plugin<Project> {
explicitApiWarning()
js(IR) {
browser()
browser{
commonWebpackConfig {
cssSupport.enabled = true
}
}
}
sourceSets["main"].apply {
@ -97,7 +100,11 @@ open class KScienceCommonPlugin : Plugin<Project> {
}
js(IR) {
browser()
browser{
commonWebpackConfig {
cssSupport.enabled = true
}
}
}
sourceSets.invoke {