@jpapini/webpack-config
Version:
Custom Webpack configuration for bundling projects.
16 lines (13 loc) • 466 B
text/typescript
import type { Configuration as IConfiguration } from 'webpack';
import type { Configuration as IDevServerConfiguration } from 'webpack-dev-server';
export type WebpackConfiguration = IConfiguration & {
devServer?: IDevServerConfiguration;
};
export type WebpackEnv = {
WEBPACK_BUNDLE?: boolean;
WEBPACK_BUILD?: boolean;
WEBPACK_WATCH?: boolean;
WEBPACK_SERVE?: boolean;
WEBPACK_PACKAGE?: string;
WEBPACK_DEV_SERVER_PACKAGE?: string;
};