import { type Configuration } from 'webpack'; import { type FlatMockOptions, type SecureContextHttps } from '@flatjs/mock'; export interface WebpackWatchOptions { /** * Delay the rebuilt after the first change. Value is a time in ms. */ aggregateTimeout?: number; /** * Resolve symlinks and watch symlink and real file. This is usually not needed as webpack already resolves symlinks ('resolve.symlinks'). */ followSymlinks?: boolean; /** * Ignore some files from watching (glob pattern or regexp). */ ignored?: string | RegExp | string[]; /** * Enable polling mode for watching. */ poll?: number | boolean; } export type FlatSculptDevServerOptions = { /** * Turn on watch mode. This means that after the initial build, webpack will continue to watch for changes in any of the resolved files. * In webpack-dev-server watch mode is enabled by default. * This configuration will be merged into `webpack-dev-server` */ watchOptions?: Configuration['watchOptions']; /** * The customized config options of `flatjs/mock`, it will override options `flatjs-mock.config.ts` */ mockOptions?: Omit; /** * Provide your own certificate using the https option */ https?: SecureContextHttps; };