Skip to content

Commit

Permalink
example: update .kktrc.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 12, 2021
1 parent 1fc3f1b commit e3224d5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/bundle-react-component-tsx/.kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import reactLibrary from '@kkt/react-library';
import lessModules from '@kkt/less-modules';
import pkg from './package.json';

export default (conf: Configuration, env: string, options: LoaderConfOptions) => {
export default (conf: Configuration, env: 'development' | 'production', options: LoaderConfOptions) => {
conf = lessModules(conf, env, options);
conf = reactLibrary(conf, env, {
...options,
Expand Down
2 changes: 1 addition & 1 deletion example/electron/.kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import webpack, { Configuration } from 'webpack';
import lessModules from '@kkt/less-modules';
import { LoaderConfOptions } from 'kkt';

export default (conf: Configuration, env: string, options: LoaderConfOptions) => {
export default (conf: Configuration, env: 'development' | 'production', options: LoaderConfOptions) => {
conf = lessModules(conf, env, options);
conf.output!.publicPath = './';
const regexp = /(GenerateSW)/;
Expand Down
2 changes: 1 addition & 1 deletion example/react-component-tsx/.kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import rawModules from '@kkt/raw-modules';
import scopePluginOptions from '@kkt/scope-plugin-options';
import pkg from './package.json';

export default (conf: Configuration, env: string, options: LoaderConfOptions) => {
export default (conf: Configuration, env: 'development' | 'production', options: LoaderConfOptions) => {
conf = rawModules(conf, env, { ...options });
conf = scopePluginOptions(conf, env, {
...options,
Expand Down
2 changes: 1 addition & 1 deletion example/rematch-tsx/.kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import rawModules from '@kkt/raw-modules';
import scopePluginOptions from '@kkt/scope-plugin-options';
import pkg from './package.json';

export default (conf: Configuration, env: string, options: LoaderConfOptions) => {
export default (conf: Configuration, env: 'development' | 'production', options: LoaderConfOptions) => {
conf = lessModules(conf, env, options);
conf = rawModules(conf, env, { ...options });
conf = scopePluginOptions(conf, env, {
Expand Down
2 changes: 1 addition & 1 deletion example/typescript/.kktrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import lessModules from '@kkt/less-modules';
import { LoaderConfOptions } from 'kkt';
import pkg from './package.json';

export default (conf: Configuration, env: string, options: LoaderConfOptions) => {
export default (conf: Configuration, env: 'development' | 'production', options: LoaderConfOptions) => {
conf = lessModules(conf, env, options);
// Get the project version.
conf.plugins!.push(
Expand Down

1 comment on commit e3224d5

@vercel
Copy link

@vercel vercel bot commented on e3224d5 Mar 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

The most recent charge for your active payment method has failed. Please update it here: https://vercel.com/teams/kktjs/settings/billing.

Please sign in to comment.