UNPKG

@frontity/core

Version:

The core package of the Frontity framework.

22 lines (21 loc) 603 B
import { Mode, WebpackConfig } from "@frontity/types/config"; /** * The options of the {@link devtools} function. */ interface DevToolsOptions { /** * The mode of the build: "development" or "production". */ mode: Mode; } /** * Generate the object for Webpack's devtool configuration. * * Official Webpack docs: https://webpack.js.org/configuration/devtool. * * @param options - Defined in {@link DevToolsOptions}. * * @returns The configuration object for Webpack. */ declare const devtools: ({ mode }: DevToolsOptions) => WebpackConfig["devtool"]; export default devtools;