Skip to content

Commit

Permalink
docs: update github syntax of note (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
ersachin3112 committed Jun 21, 2024
1 parent 727427b commit 3df97b6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ module.exports = {
};
```

> **Warning**
> [!WARNING]
>
> Note that if you import CSS from your webpack entrypoint or import styles in the [initial](https://webpack.js.org/concepts/under-the-hood/#chunks) chunk, `mini-css-extract-plugin` will not load this CSS into the page. Please use [`html-webpack-plugin`](https://github.com/jantimon/html-webpack-plugin) for automatic generation `link` tags or create `index.html` file with `link` tag.
> **Warning**
> [!WARNING]
>
> Source maps works only for `source-map`/`nosources-source-map`/`hidden-nosources-source-map`/`hidden-source-map` values because CSS only supports source maps with the `sourceMappingURL` comment (i.e. `//# sourceMappingURL=style.css.map`). If you need set `devtool` to another value you can enable source maps generation for extracted CSS using [`sourceMap: true`](https://github.com/webpack-contrib/css-loader#sourcemap) for `css-loader`.
Expand Down Expand Up @@ -162,7 +162,7 @@ Default: `document.head.appendChild(linkTag);`

Inserts the `link` tag at the given position for [non-initial (async)](https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks

> **Warning**
> [!WARNING]
>
> Only for [non-initial (async)](https://webpack.js.org/concepts/under-the-hood/#chunks) chunks.
Expand Down Expand Up @@ -222,7 +222,7 @@ type attributes = Record<string, string>};

Default: `{}`

> **Warning**
> [!WARNING]
>
> Only for [non-initial (async)](https://webpack.js.org/concepts/under-the-hood/#chunks) chunks.
Expand Down Expand Up @@ -253,7 +253,7 @@ module.exports = {
};
```

> **Note**
> [!NOTE]
>
> It's only applied to dynamically loaded css chunks, if you want to modify link attributes inside html file, please using [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin)
Expand Down Expand Up @@ -560,7 +560,7 @@ type defaultExport = boolean;

Default: `false`

> **Note**
> [!NOTE]
>
> This option will work only when you set `namedExport` to `true` in `css-loader`
Expand Down Expand Up @@ -832,7 +832,7 @@ module.exports = {

### Hot Module Reloading (HMR)

> **Note**
> [!NOTE]
>
> HMR is automatically supported in webpack 5. No need to configure it. Skip the following:
Expand Down

0 comments on commit 3df97b6

Please sign in to comment.