Skip to content

Commit 4352fe9

Browse files
authored
Merge pull request #329 from grgur/patch-5
Minor rules/use fix in sample code
2 parents a3d5f88 + d30f2fa commit 4352fe9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

content/concepts/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Introduction
33
contributors:
44
- TheLarkInn
55
- jhnns
6+
- grgur
67
---
78

89
*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!
@@ -111,8 +112,8 @@ const config = {
111112
path: './dist'
112113
},
113114
module: {
114-
loaders: [
115-
{test: /\.(js|jsx)$/, loader: 'babel-loader'}
115+
rules: [
116+
{test: /\.(js|jsx)$/, use: 'babel-loader'}
116117
]
117118
},
118119
plugins: [
@@ -128,4 +129,4 @@ There are many plugins that webpack provides out of the box! Check out our [list
128129

129130
Using plugins in your webpack config is straight-forward, however there are many use-cases that are worth discussing further.
130131

131-
[Learn more!](/concepts/plugins)
132+
[Learn more!](/concepts/plugins)

0 commit comments

Comments
 (0)