import * as https from "node:https"; export interface YamlConfig { [environment: string]: Partial; } export interface LegacyConfig extends Config { webpack_loader?: string; } export interface Config { source_path: string; source_entry_path: string; nested_entries: boolean; css_extract_ignore_order_warnings: boolean; css_modules_export_mode?: "named" | "default"; public_root_path: string; public_output_path: string; private_output_path?: string; cache_path: string; webpack_compile_output: boolean; webpack_compile_flags?: string[]; shakapacker_precompile: boolean; additional_paths: string[]; cache_manifest: boolean; javascript_transpiler: string; ensure_consistent_versioning: boolean; compiler_strategy: string; useContentHash: boolean; compile: boolean; outputPath: string; privateOutputPath?: string; publicPath: string; publicPathWithoutCDN: string; manifestPath: string; manifest_path?: string; assets_bundler?: string; dev_server?: DevServerConfig; integrity?: { enabled: boolean; cross_origin: string; hash_functions?: string[]; }; } export interface Env { railsEnv: string; nodeEnv: string; isProduction: boolean; isDevelopment: boolean; runningWebpackDevServer: boolean; } type Header = Array<{ key: string; value: string; }> | Record; /** * This has the same keys and behavior as https://webpack.js.org/configuration/dev-server/ except: * 1. `hot` is replaced by `hmr`; * 2. Camel-cased properties are replaced by snake-cased ones. * @see {import('webpack-dev-server').Configuration} */ export interface DevServerConfig { allowed_hosts?: string | string[]; bonjour?: boolean | Record; client?: Record; compress?: boolean; dev_middleware?: Record; headers?: Header | (() => Header); history_api_fallback?: boolean | Record; hmr?: "only" | boolean; host?: string; http2?: boolean; https?: boolean | https.ServerOptions; ipc?: boolean | string; magic_html?: boolean; live_reload?: boolean; inline_css?: boolean; env_prefix?: string; open?: boolean | string | string[] | Record | Record[]; port?: string | number; proxy?: unknown; setup_exit_signals?: boolean; static?: unknown; watch_files?: unknown; web_socket_server?: string | boolean | { type?: string | boolean; options?: Record; }; server?: string | boolean | { type?: string | boolean; options?: https.ServerOptions; }; [otherWebpackDevServerConfigKey: string]: unknown; } export {}; //# sourceMappingURL=types.d.ts.map