# webpack-docs.us-en **Repository Path**: khs1994-website/webpack-docs.us-en ## Basic Information - **Project Name**: webpack-docs.us-en - **Description**: No description available - **Primary Language**: Unknown - **License**: CC-BY-4.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-11-02 - **Last Updated**: 2026-02-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README --- title: webpack sort: -1 --- ## Write Your Code
__src/index.js__ ```js import bar from './bar'; bar(); ```
__src/bar.js__ ```js export default function bar() { // } ```
## Bundle It
__[Without config](https://youtu.be/3Nv9muOkb6k?t=21293)__ or provide custom __webpack.config.js__ ```js const path = require('path'); module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'bundle.js' } }; ```
__page.html__ ```html ... ... ```
Then run `webpack` on the command-line to create `bundle.js`. ## Awesome isn't it? Let's dive in! __[Get Started](/guides/getting-started)__ quickly in our __Guides__ section, or dig into the __[Concepts](/concepts)__ section for more high-level information on the core notions behind webpack.