improve build script

This commit is contained in:
Philipp Kühn
2020-11-10 11:53:47 +01:00
parent efbe21d19a
commit 30009df309
4 changed files with 41 additions and 611 deletions

View File

@@ -88,21 +88,21 @@ async function build(commandLineArgs) {
plugins,
})
// config.push({
// input,
// output: [
// {
// name,
// file: path.join(basePath, unpkg),
// format: 'umd',
// sourcemap: true,
// },
// ],
// plugins: [
// ...plugins,
// terser(),
// ],
// })
config.push({
input,
output: [
{
name,
file: path.join(basePath, unpkg),
format: 'umd',
sourcemap: true,
},
],
plugins: [
...plugins,
terser(),
],
})
})
return config