build: support source map in build and dev scripts
This commit is contained in:
@@ -27,6 +27,7 @@ const targets = args._
|
||||
const formats = args.formats || args.f
|
||||
const devOnly = args.devOnly || args.d
|
||||
const prodOnly = !devOnly && (args.prodOnly || args.p)
|
||||
const sourceMap = args.sourcemap || args.s
|
||||
const isRelease = args.release
|
||||
const buildTypes = args.t || args.types || isRelease
|
||||
const buildAllMatching = args.all || args.a
|
||||
@@ -80,7 +81,8 @@ async function build(target) {
|
||||
formats ? `FORMATS:${formats}` : ``,
|
||||
buildTypes ? `TYPES:true` : ``,
|
||||
prodOnly ? `PROD_ONLY:true` : ``,
|
||||
lean ? `LEAN:true` : ``
|
||||
lean ? `LEAN:true` : ``,
|
||||
sourceMap ? `SOURCE_MAP:true` : ``
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(',')
|
||||
|
||||
Reference in New Issue
Block a user