8000 Add an example how to adjust ts-loader settings · symfony/symfony-docs@0130875 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0130875

Browse files
authored
Add an example how to adjust ts-loader settings
1 parent b16f8eb commit 0130875

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

frontend/encore/typescript.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,19 @@ Encore, you're done!
2626

2727
Any ``.ts`` files that you require will be processed correctly. You can
2828
also configure the `ts-loader options`_ via the ``enableTypeScriptLoader()``
29-
method. See the `Encore's index.js file`_ for detailed documentation and check
29+
method.
30+
31+
.. code-block:: javascript
32+
33+
Encore
34+
.enableTypeScriptLoader(function(tsConfig) {
35+
// You can use this callback function to adjust ts-loader settings
36+
// https://github.com/TypeStrong/ts-loader/blob/master/README.md#loader-options
37+
// For example:
38+
// tsConfig.silent = false
39+
})
40+
41+
See the `Encore's index.js file`_ for detailed documentation and check
3042
out the `tsconfig.json reference`_ and the `Webpack guide about Typescript`_.
3143

3244
If React is enabled (``.enableReactPreset()``), any ``.tsx`` file will also be

0 commit comments

Comments
 (0)
0