0.0.4 • Published 4 years ago

esnext-build v0.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

esnext-build

Options

type SharedOptions = {
    plugins?: function[]
    sourceDirectory?: string
    outputDirectory?: string
    useCssModules?: boolean
    cssGlobalDirectories?: string[]
    cssModuleDirectories?: string[]
    usePolyfills?: boolean
    useLinting?: boolean
    eslintConfigPath?: string
    stylelintConfigPath?: string
    tsConfigPath?: string
    babelConfigPath?: string
}

type EntryOptions = SharedOptions & {
    file: string
    scriptOutputFilename?: string
    styleOutputFilename?: string
}

type GlobalOptions = SharedOptions & {
    argv?: { prod?: boolean, analyze?: boolean }
    entries: { [key: string]: EntryOptions }
    aliases?: { [key: string]: string }
    useHttps?: boolean
    allowCors?: boolean
    nodeModulesToBabel?: string[]
}