1
0
mirror of https://github.com/flarum/core.git synced 2025-08-12 03:14:33 +02:00

Move Typescript configuration to webpack config from core (#11)

This commit is contained in:
David Wheatley
2021-05-12 01:28:31 +01:00
committed by GitHub
parent 3610f08d6b
commit 4bdb02a878
5 changed files with 1588 additions and 10961 deletions

View File

@@ -14,6 +14,12 @@ module.exports = config(options);
To merge in custom Webpack config options, use [webpack-merge](https://www.npmjs.com/package/webpack-merge).
## Typescript
You'll need to configure a `tsconfig.json` file to ensure your IDE sets up Typescript support correctly.
For details about this, see the [`flarum/flarum-tsconfig` repository](https://github.com/flarum/flarum-tsconfig)
## Options
### `useExtensions`
@@ -34,6 +40,6 @@ import { Tag } from '@flarum/tags/forum';
```js
module.exports = config({
useExtensions: ['flarum/tags']
useExtensions: ['flarum/tags'],
});
```