We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a018b4 commit 6a686deCopy full SHA for 6a686de
src/content/guides/getting-started.mdx
@@ -263,7 +263,7 @@ export default {
263
};
264
</CodeBlock>
265
266
-<CodeBlock label="webpack.config.cjs / .js">
+<CodeBlock label="webpack.config.cjs">
267
const path = require('path');
268
269
module.exports = {
@@ -275,9 +275,19 @@ module.exports = {
275
276
277
278
-</CodeGroup>
+<CodeBlock label="webpack.config.js">
279
+const path = require('path');
280
281
+module.exports = {
282
+ entry: './src/index.js',
283
+ output: {
284
+ filename: 'main.js',
285
+ path: path.resolve(__dirname, 'dist'),
286
+ },
287
+};
288
+</CodeBlock>
289
290
+</CodeGroup>
291
Now, let's run the build again but instead using our new configuration file:
292
293
```bash
0 commit comments