Skip to content

Commit c880967

Browse files
authored
Fix file name in the example code
1 parent f4fcac7 commit c880967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/spfx/toolchain/extending-webpack-in-build-pipeline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Now that we've configured the loader, let's update our code and add a few files
132132
1. To use this HTML string in any of your source **.ts** files, add the following `require()` line at the top of the file after your imports, for example:
133133

134134
```typescript
135-
const markdownString: string = require<string>('./../../../../src/readme.md');
135+
const markdownString: string = require<string>('./../../../../src/my-markdown.md');
136136
```
137137

138138
Webpack by default looks in the `lib` folder for the file, but by default `.md` files don't get copied to the `lib` folder, meaning that we need to create a rather lengthy relative path. We can control this setting by defining a config file to tell the toolchain to copy `md` files to the lib folder.

0 commit comments

Comments
 (0)