You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/guides/typescript.md
+15-15
Original file line number
Diff line number
Diff line change
@@ -16,26 +16,26 @@ T> This guide stems from the [*Getting Started*](/guides/getting-started/) guide
16
16
17
17
First install the TypeScript compiler and loader by running:
18
18
19
-
```bash
20
-
npm install --save-dev typescript ts-loader
21
-
```
19
+
```bash
20
+
npm install --save-dev typescript ts-loader
21
+
```
22
22
23
23
Now we'll modify the directory structure & the configuration files:
24
24
25
-
__project__git stat
25
+
__project__
26
26
27
27
```diff
28
-
webpack-demo
29
-
|- package.json
28
+
webpack-demo
29
+
|- package.json
30
30
+ |- tsconfig.json
31
-
|- webpack.config.js
32
-
|- /dist
33
-
|- bundle.js
34
-
|- index.html
35
-
|- /src
36
-
|- index.js
37
-
+ |- index.ts
38
-
|- /node_modules
31
+
|- webpack.config.js
32
+
|- /dist
33
+
|- bundle.js
34
+
|- index.html
35
+
|- /src
36
+
|- index.js
37
+
+|- index.ts
38
+
|- /node_modules
39
39
```
40
40
41
41
__tsconfig.json__
@@ -88,7 +88,7 @@ module.exports = {
88
88
};
89
89
```
90
90
91
-
This will direct webpackgit sdt to _enter_ through `./index.ts`, _load_ all `.ts` and `.tsx` files through the `ts-loader`, and _output_ a `bundle.js` file in our current directory.
91
+
This will direct webpack to _enter_ through `./index.ts`, _load_ all `.ts` and `.tsx` files through the `ts-loader`, and _output_ a `bundle.js` file in our current directory.
0 commit comments