| commit | 663b37738d0ed6826fdc64d6eddcaf9e0270fc8c | [log] [tgz] |
|---|---|---|
| author | j <[email protected]> | Sun Sep 20 18:00:31 2020 -0700 |
| committer | j <[email protected]> | Sun Sep 20 18:00:31 2020 -0700 |
| tree | 91464fdd497045973459bbbcc82931d28b32dfe6 | |
| parent | 2e9570d7fbbcaa9d6d428906a3e79ad22f50336e [diff] |
fix sourcemaps
diff --git a/build.js b/build.js index 79bd42e..0d5a3e9 100644 --- a/build.js +++ b/build.js
@@ -33,10 +33,13 @@ //Minify files function async function minifyFile(filePath) { //Run terser - var results = await minify(fs.readFileSync(filePath, "utf8"), { + var results = await minify({ + [filePath]: fs.readFileSync(filePath, "utf8") + }, { sourceMap: { url: "/" + filePath + ".map", - includeSources: true + includeSources: true, + root: "/" } });