Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions frontend/encore/typescript.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ Loader usage can be checked better in its `README`_ documentation.

-- Running section of ts-loader documentation


Checking Types in a separate Process
------------------------------------

In order to get `Faster builds`_ it is possible to enable the `fork-ts-checker-webpack-plugin`_ plugin.

.. code-block:: javascript

.enableForkedTypeScriptTypesChecking(function (forkedTypesCheckOptions) {
forkedTypesCheckOptions.tsconfig = './tsconfig.json',
forkedTypesCheckOptions.tslint = './tslint.json',
});

.. _`TypeScript`: https://www.typescriptlang.org/
.. _`ts-loader options`: https://github.com/TypeStrong/ts-loader#options
.. _`README`: https://github.com/TypeStrong/ts-loader#typescript-loader-for-webpack
.. _`Faster builds`: https://github.com/TypeStrong/ts-loader#faster-builds
.. _`fork-ts-checker-webpack-plugin`: https://github.com/Realytics/fork-ts-checker-webpack-plugin