Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack replacement in example multiplatform #1

Open
gad2103 opened this issue Aug 20, 2021 · 1 comment
Open

Webpack replacement in example multiplatform #1

gad2103 opened this issue Aug 20, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@gad2103
Copy link

gad2103 commented Aug 20, 2021

Hi there! This looks awesome and thanks for writing it.

It would be really great to have a small guide for replacing the default webpack configuration that ships with the multiplatform wizard in intellij.

We have a few tasks that are dependent on the default webpack tasks and some custom configuration for webpack the relies on plugins like less loader.

I would love to see a few examples of how to swap that code out quickly because webpack is such a pain and horribly slow.

Thanks again!

@soywiz
Copy link
Member

soywiz commented Aug 23, 2021

This is an experimental repo, so only a proof of concept and not a real gradle plugin you can directly use.

To use it you would copy this code:
https://github.com/soywiz/kotlinjs-esbuild/blob/6aacdb1d0918bed5eb1311c31d8bd143e8ea7d7b/build.gradle.kts#L38-L97

into your build.gradle.kts file.

Yo support web serving, you can also copy the contents of the buildSrc folder: https://github.com/soywiz/kotlinjs-esbuild/tree/6aacdb1d0918bed5eb1311c31d8bd143e8ea7d7b/buildSrc/src/main/kotlin

@soywiz soywiz added documentation Improvements or additions to documentation question Further information is requested labels Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants