Skip to content

Commit

Permalink
Merge pull request #1386 from tko/docs-typescript
Browse files Browse the repository at this point in the history
Documented webpack customization example for typescript
  • Loading branch information
shilman committed Jun 29, 2017
2 parents d6f791c + 69aeb96 commit 638392c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/pages/configurations/custom-webpack-config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ module.exports = (baseConfig, env) => {

// Extend it as you need.

// For example, add typescript loader:
config.module.rules.push({
test: /\.(ts|tsx)$/,
include: path.resolve(__dirname, '../src'),
loader: require.resolve('ts-loader')
});
config.resolve.extensions.push('.ts', '.tsx');

return config;
};
```
Expand Down

0 comments on commit 638392c

Please sign in to comment.