Skip to content

Shorten Intro and Entry point description #349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions content/concepts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,23 @@ contributors:
- grgur
---

*webpack* is a _module bundler_ for modern JavaScript applications. It is [incredibly configurable](/configuration), however, there are **4 Core Concepts** we feel you should understand before you get started!

As part of your webpack learning journey, we wrote this document aimed to give you a **high-level** overview of these concepts, while still providing links to concept specific use-cases.
*Webpack* is a _module bundler_ for modern javascript applications. This document will give you a high-level overview of **4 Core Concepts** you should understand before you start [configuring it.](/configuration)

## Entry

webpack creates a graph of all of your application's dependencies. The starting point of this graph is known as an _entry point_. The _entry point_ tells webpack _where to start_ and follows the graph of dependencies to know _what to bundle_. You can think of your application's _entry point_ as the **contextual root** or **the first file to kick off your app**.
Webpack creates a graph of all of your application's dependencies. The root node of dependencies graph is known as an _entry point_. The _entry point_ tells webpack _where to start_ and follows the graph of dependencies to know _what to bundle_.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Webpack/webpack/

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? It's a new sentence.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


In webpack we define _entry points_ using the `entry` property in our [webpack configuration object](/configuration).
In webpack we define _entry points_ using the `entry` property in the [configuration object](/configuration).

The simplest example is seen below:

**webpack.config.js**

```javascript
module.exports = {
entry: './path/to/my/entry/file.js'
};
```

There are multiple ways to declare your `entry` property that are specific to your application's needs.

[Learn more!](/concepts/entry-points)
There are multiple ways to declare your `entry` property that are specific to your application's needs. Check out [the entry points documentation](/concepts/entry-points) to learn more.

## Output

Expand Down