Run terser with npx.

This commit is contained in:
Dillon Kearns 2020-10-16 15:59:43 -07:00
parent 9faaa69e11
commit 17aa244fc6

View File

@ -146,7 +146,7 @@ async function compileElm() {
*/
async function runTerser(filePath) {
await shellCommand(
`terser ${filePath} --module --compress 'pure_funcs="F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9",pure_getters,keep_fargs=false,unsafe_comps,unsafe' | terser --module --mangle --output=${filePath}`
`npx terser ${filePath} --module --compress 'pure_funcs="F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9",pure_getters,keep_fargs=false,unsafe_comps,unsafe' | npx terser --module --mangle --output=${filePath}`
);
}