Skip to content

Commit 5b9bdfe

Browse files
committed
fix(docs): refine config file extension labels to cjs
1 parent 2a018b4 commit 5b9bdfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/guides/getting-started.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ As of version 4, webpack doesn't require any configuration, but most projects wi
248248

249249
<CodeBlock label="webpack.config.mjs" active>
250250

251-
```javascript
251+
````javascript
252252
import path from 'path';
253253
import { fileURLToPath } from 'url';
254254

@@ -263,7 +263,7 @@ export default {
263263
};
264264
</CodeBlock>
265265

266-
<CodeBlock label="webpack.config.cjs / .js">
266+
<CodeBlock label="webpack.config.cjs">
267267
const path = require('path');
268268

269269
module.exports = {
@@ -289,7 +289,7 @@ cacheable modules 530 KiB
289289
./src/index.js 257 bytes [built] [code generated]
290290
./node_modules/lodash/lodash.js 530 KiB [built] [code generated]
291291
webpack 5.4.0 compiled successfully in 1934 ms
292-
```
292+
````
293293
294294
T> If a `webpack.config.js` is present, the `webpack` command picks it up by default. We use the `--config` option here only to show that you can pass a configuration of any name. This will be useful for more complex configurations that need to be split into multiple files.
295295

0 commit comments

Comments
 (0)