Skip to content

Commit 4effd63

Browse files
Fix typos
1 parent 7f5810a commit 4effd63

File tree

1 file changed

+2
-2
lines changed
  • src/Microsoft.AspNetCore.SpaServices

1 file changed

+2
-2
lines changed

src/Microsoft.AspNetCore.SpaServices/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ If instead of LESS you prefer SASS or another CSS preprocessor, the exact same t
388388

389389
#### Approach 1: Loading the styles using JavaScript
390390

391-
This technique is a little simpler to set up than technique 1, plus it works flawlessly with Hot Module Replacement (HMR). The downside is that it's really only good for development time, because in production you probably don't want users to wait until JavaScript is loaded before styles are applied to the page (this would mean they'd see a 'flash of unstyled content' while the page is being loaded).
391+
This technique is a little simpler to set up than technique 2, plus it works flawlessly with Hot Module Replacement (HMR). The downside is that it's really only good for development time, because in production you probably don't want users to wait until JavaScript is loaded before styles are applied to the page (this would mean they'd see a 'flash of unstyled content' while the page is being loaded).
392392

393393
First create a `.less` file in your project. For example, create a file at `ClientApp/styles/mystyles.less` containing:
394394

@@ -506,7 +506,7 @@ If you run `webpack` on the command line now, you should now find that it emits
506506
<link rel="stylesheet" href="~/dist/mystyles.css" asp-append-version="true" />
507507
```
508508

509-
**Note** This technique (writing the built `.css` file to disk) is ideal for production use. But note that, at development time, *it does not support Hot Module Replacement (HMR)*. You will need to reload the page each time you edit your `.less` file. This is a known limitation of `extract-text-webpack-plugin`. If you have constructive opinions on how this can be improved, see the [discussion here](https://github.com/webpack/extract-text-webpack-plugin/issues/30).
509+
**Note:** This technique (writing the built `.css` file to disk) is ideal for production use. But note that, at development time, *it does not support Hot Module Replacement (HMR)*. You will need to reload the page each time you edit your `.less` file. This is a known limitation of `extract-text-webpack-plugin`. If you have constructive opinions on how this can be improved, see the [discussion here](https://github.com/webpack/extract-text-webpack-plugin/issues/30).
510510

511511
### Enabling webpack dev middleware
512512

0 commit comments

Comments
 (0)