v6.2.1...v6.3.0
- 🐞 fix(deps): update dependency web-vitals to v1.1.0
a244baa
@renovate-bot
- 💄 chore(react-component-tsx): Update index.html
822e12a
- 💄 chore(react-component-tsx): Update react-app-env.d.ts
55695a3
- 🌟 feat(kkt): Add --no-clear-console args.
448aaf7
- 📄 Merge branch 'master' of github.com:kktjs/kkt
e37978f
- 📖 doc: Update README.md
295ab41
- 💄 chore(react-component-tsx): Update kkt config.
67ed0c5
- 💄 chore: remove README.md
66c50d2
- 💄 chore: Link README.md
8836155
- export const devServer = (configFunction: DevServerConfigFunction) => {
- return (proxy: WebpackDevServer.ProxyConfigArrayItem[], allowedHost: string) => {
- // Create the default config by calling configFunction with the proxy/allowedHost parameters
- const config = configFunction(proxy, allowedHost);
- // Return your customised Webpack Development Server config.
- return config;
- }
- }
+ export const devServer = (config: WebpackDevServer.Configuration) => {
+ // Return your customised Webpack Development Server config.
+ return config;
+ };
import express from 'express';
import { ParsedArgs } from 'minimist';
import WebpackDevServer from 'webpack-dev-server';
import { Configuration } from 'webpack';
import { LoaderConfOptions, DevServerConfigFunction, MockerAPIOptions } from 'kkt';
type KKTRC = {
proxySetup?: (app: express.Application) => MockerAPIOptions;
- devServer?: (configFunction: DevServerConfigFunction, evn: string) => DevServerConfigFunction;
+ devServer?: (config: WebpackDevServer.Configuration) => WebpackDevServer.Configuration;
default?: (conf: Configuration, evn: string, options: LoaderConfOptions) => Configuration;
};
- type DevServerConfigFunction = (proxy: WebpackDevServer.ProxyConfigArrayItem[], allowedHost: string)
- => WebpackDevServer.Configuration;
Usage: kkt [start|build|test] [--help|h]
Displays help information.
Options:
--version, -v Show version number
--help, -h Displays help information.
--no-open-browser Do not open in browser.
+ --no-clear-console Do not clear the command line information.
Example:
$ kkt build
$ kkt build --app-src ./website
$ kkt start
$ kkt start --no-open-browser
+ $ kkt start --no-clear-console
$ kkt start --app-src ./website
$ kkt test