Nikky
10/10/2019, 1:39 PM.js.map
files do not seems to work, as in .. when i open the debugger in chrome the files are empty
i use moduleKind = "umd"
and require.js to load all things (because everything else seemed to be unproportional more effort)
anybody else having this issue.. or have working source mappings ?Ilya Goncharov [JB]
10/10/2019, 1:42 PMNikky
10/10/2019, 2:49 PMNikky
10/10/2019, 2:59 PMNikky
10/10/2019, 2:59 PMIlya Goncharov [JB]
10/10/2019, 3:00 PMwebpack.config.d
Something like this
config.devtool='source-map'
It locates source maps in separate fileNikky
10/10/2019, 3:03 PMIlya Goncharov [JB]
10/10/2019, 3:07 PMNikky
10/10/2019, 3:39 PMIlya Goncharov [JB]
10/10/2019, 4:40 PMNikky
10/12/2019, 12:13 PM#!/usr/bin/env bash
./gradlew runDceClient-jsKotlin
OUTPUT=build/html/js/
rm -rf $OUTPUT
mkdir $OUTPUT
FILES=build/kotlin-js-min/client-js/main/*.js
for f in $FILES
do
if [[ "$f" == *.meta.js ]]; then continue; fi
echo "Processing $f file..."
terser $f --source-map "content='$f.map',url='$b.map'" -c -m -o $OUTPUT/$(basename $f)
done