What is the difference between `compileProductionE...
# javascript
v
What is the difference between
compileProductionExecutableKotlinJs
and
compileDevelopmentExecutableKotlinJs
? According to their
outputFile
property they both write to
<project dir>/build/js/packages/<project>/kotlin/<project>.js
which per-se is maybe not the best idea already. But what is the difference, I can find neither in the docs.
1
a
compileDevelopmentExecutableKotlinJs
spits
unminified
js (which is executes fast)
compileProductionExecutableKotlinJs
spits out
minified
js (which is executes slower but yields much smaller files for production)
v
I see, thanks. Still questionable whether they should overwrite each others outputs though.
👌 1
t
1. Both use common NPM resources 2. Only one mode (
production
or
development
) can be active at the moment
v
But it is always problematic if two tasks overwrite each others output. If you e. g. run A then B then A without any changes made, A cannot be up-to-date as B changed its outputs and things like that.
i
Yes, for now they have similar output location,
production
is with enabled DCE
v
It's not similar, it is identical, isn't it? Or did I misread? Btw. maybe would make sense to have that in the docs (the difference) 🙂
i
It’s not similar, it is identical, isn’t it?
Yes, until it will be changed separately for one of tasks
Btw. maybe would make sense to have that in the docs (the difference) 🙂
cc @Sebastian Aigner