This webpage talks about `browserDevelopmentWebpac...
# javascript
h
This webpage talks about
browserDevelopmentWebpack
and
browserProductionWebpack
gradle tasks: https://kotlinlang.org/docs/reference/js-project-setup.html, but I can't customize them. Can anyone tell me how to add a simple
doFirst
or
doLast
in there? The only thing I get from Gradle, is «Unresolved reference: browserDevelopmentWebpack» ...
a
You really do think that pinning your questions is a good way to attract positive emotions?
v
I guess those tasks are dynamically created later than when you try to access them. If you want to configure all such tasks, you can go by type, or otherwise you could do something like
tasks.matching { it.name == 'browserDevelopmentWebpack' }.configure { ... }
or so.
h
Sorry about the pinning, @altavir, @kqr and everyone else, I thought I was just following the question! (I have previously experienced that I ask something and miss the answers because the question flies off of the screen when other conversations appear).
a
Ok then. You can mark it as saved (flag mark), then it will be pinned only for you.
h
Thanks, @Vampire, that might work!