-__bar.js__
+__src/bar.js__
```js
export default function bar() {
@@ -30,12 +30,15 @@ export default function bar() {
-__webpack.config.js__
+__[Without config](https://youtu.be/3Nv9muOkb6k?t=21293)__ or provide custom __webpack.config.js__
```js
+const path = require('path');
+
module.exports = {
- entry: './app.js',
+ entry: './src/index.js',
output: {
+ path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js'
}
};
@@ -52,7 +55,7 @@ __page.html__
...
-
+