Skip to content

Commit

Permalink
Add example preact.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wub committed Jul 17, 2017
1 parent faee60f commit 93a08d4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/preact.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import preactCliTypeScript from "preact-cli-plugin-typescript";

/**
* Function that mutates original webpack config.
* Supports asynchronous changes when promise is returned.
*
* @param {object} config original webpack config.
* @param {object} env options passed to CLI.
* @param {WebpackConfigHelpers} helpers object with useful helpers when working with config.
**/
export default function (config, env, helpers) {
preactCliTypeScript(config);
}

0 comments on commit 93a08d4

Please sign in to comment.