Skip to content

Commit 6a686de

Browse files
committed
fix(docs): correct config examples format and structure
1 parent 2a018b4 commit 6a686de

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/content/guides/getting-started.mdx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 = {
@@ -275,9 +275,19 @@ module.exports = {
275275
};
276276
</CodeBlock>
277277

278-
</CodeGroup>
278+
<CodeBlock label="webpack.config.js">
279+
const path = require('path');
279280

281+
module.exports = {
282+
entry: './src/index.js',
283+
output: {
284+
filename: 'main.js',
285+
path: path.resolve(__dirname, 'dist'),
286+
},
287+
};
288+
</CodeBlock>
280289

290+
</CodeGroup>
281291
Now, let's run the build again but instead using our new configuration file:
282292
283293
```bash

0 commit comments

Comments
 (0)