Repository URL to install this package:
|
Version:
3.6.2 ▾
|
import {
OutputOptions,
CompressOptions,
MangleOptions,
MinifyOptions,
SourceMapOptions,
ParseOptions,
} from 'uglify-js'
export { MultiCompiler, RuleSetCondition } from 'webpack'
export { Configuration } from 'webpack'
import { Configuration } from 'webpack'
// import { Configuration as WebpackConfiguration } from 'webpack'
// export interface Configuration extends WebpackConfiguration {
// // devtool: 'none'
// }
export interface PathOptions {
outputPublicPath: string
webPath: string
}
export interface Options extends PathOptions {
target: 'client' | 'server'
isAnalyze: boolean
isDevClient: boolean
isProdServer: boolean
isProdClient: boolean
isDevServer: boolean
isProd: boolean
isDev: boolean
isClient: boolean
isServer: boolean
/** should be private & @deprecated */
bundles?: BuildOptions
/** @deprecated */
bundleConfig?: BuildOptions
optimize?: boolean
}
export interface BuildOptions extends Options {
client?: Options
server?: Options
}
export interface ConfigFactoryOptions {
target: 'client' | 'server'
mode: 'development' | 'production' | 'none'
}
export interface UglifyOptions {
warnings?: boolean
comments?: boolean
ie8?: boolean
toplevel?: any
output?: OutputOptions
compress?: CompressOptions | any
mangle?: MangleOptions
minify?: MinifyOptions
parse?: ParseOptions
sourceMap?: SourceMapOptions
}
export type BuildSystemPlugin = (
config: Configuration,
options: Options
) => void
export interface BuildSystemPluginsMap extends Map<string, BuildSystemPlugin> {}
export interface BuildSystemTap {
plugins(plugins: BuildSystemPluginsMap): void
tap(config: Configuration, options: Options): void
}
export type Signals =
| 'SIGABRT'
| 'SIGALRM'
| 'SIGBUS'
| 'SIGCHLD'
| 'SIGCONT'
| 'SIGFPE'
| 'SIGHUP'
| 'SIGILL'
| 'SIGINT'
| 'SIGIO'
| 'SIGIOT'
| 'SIGKILL'
| 'SIGPIPE'
| 'SIGPOLL'
| 'SIGPROF'
| 'SIGPWR'
| 'SIGQUIT'
| 'SIGSEGV'
| 'SIGSTKFLT'
| 'SIGSTOP'
| 'SIGSYS'
| 'SIGTERM'
| 'SIGTRAP'
| 'SIGTSTP'
| 'SIGTTIN'
| 'SIGTTOU'
| 'SIGUNUSED'
| 'SIGURG'
| 'SIGUSR1'
| 'SIGUSR2'
| 'SIGVTALRM'
| 'SIGWINCH'
| 'SIGXCPU'
| 'SIGXFSZ'
| 'SIGBREAK'
| 'SIGLOST'
| 'SIGINFO'