File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,29 @@ Encore, you're done!
2626
2727Any ``.ts `` files that you require will be processed correctly. You can
2828also 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 :: diff
32+
33+ Encore
34+ // ...
35+ .addEntry('main', './assets/main.ts')
36+
37+ - .enableTypeScriptLoader()
38+ + .enableTypeScriptLoader(function(tsConfig) {
39+ + // You can use this callback function to adjust ts-loader settings
40+ + // https://github.com/TypeStrong/ts-loader/blob/master/README.md#loader-options
41+ + // For example:
42+ + // tsConfig.silent = false
43+ + })
44+
45+ // optionally enable forked type script for faster builds
46+ // https://www.npmjs.com/package/fork-ts-checker-webpack-plugin
47+ // requires that you have a tsconfig.json file that is setup correctly.
48+ //.enableForkedTypeScriptTypesChecking()
49+ ;
50+
51+ See the `Encore's index.js file `_ for detailed documentation and check
3052out the `tsconfig.json reference `_ and the `Webpack guide about Typescript `_.
3153
3254If React is enabled (``.enableReactPreset() ``), any ``.tsx `` file will also be
You can’t perform that action at this time.
0 commit comments