Skip to content

Commit

Permalink
chore(react-component-tsx): Update example.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 24, 2021
1 parent 9b4f61d commit 819c2f7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion example/react-component-tsx/.kktrc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path';
import webpack, { Configuration } from 'webpack';
import { DevServerConfigFunction, LoaderConfOptions } from 'kkt';
import { LoaderConfOptions } from 'kkt';
import WebpackDevServer from 'webpack-dev-server';
import lessModules from '@kkt/less-modules';
import rawModules from '@kkt/raw-modules';
Expand All @@ -23,3 +23,11 @@ export default (conf: Configuration, env: string, options: LoaderConfOptions) =>
conf.output = { ...conf.output, publicPath: './' };
return conf;
};

/**
* Modify WebpackDevServer Configuration Example
*/
export const devServer = (config: WebpackDevServer.Configuration) => {
// Return your customised Webpack Development Server config.
return config;
};

0 comments on commit 819c2f7

Please sign in to comment.