Skip to content

Commit d19c1f7

Browse files
committedMar 15, 2019
docs(scaffolding): lowercase Webpack
1 parent b94b0de commit d19c1f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎SCAFFOLDING.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Introduction
22

3-
Setting up Webpack for the first time is hard. Writing advanced configurations to optimize performance is even harder. The `init` feature is designed to support people that want to create their own configuration or initializing other projects people create.
3+
Setting up webpack for the first time is hard. Writing advanced configurations to optimize performance is even harder. The `init` feature is designed to support people that want to create their own configuration or initializing other projects people create.
44

55
## Creating a scaffold
66

@@ -60,7 +60,7 @@ webpack-cli init webpack-scaffold-yourpackage
6060

6161
## API
6262

63-
To create a `scaffold`, you must create a [`yeoman-generator`](http://yeoman.io/authoring/). Because of that, you can optionally extend your generator to include methods from the [Yeoman API](http://yeoman.io/learning/). It's worth noting that we support all the properties of a regular Webpack configuration. In order for us to do this, there's a thing you need to remember:
63+
To create a `scaffold`, you must create a [`yeoman-generator`](http://yeoman.io/authoring/). Because of that, you can optionally extend your generator to include methods from the [Yeoman API](http://yeoman.io/learning/). It's worth noting that we support all the properties of a regular webpack configuration. In order for us to do this, there's a thing you need to remember:
6464

6565
> Objects are made using strings, while strings are made using double strings. This means that in order for you to create a string, you have to wrap it inside another string for us to validate it correctly.
6666
@@ -87,7 +87,7 @@ constructor(args, opts) {
8787
```
8888
### `opts.env.configuration.myObj` (required)
8989

90-
This is your scaffold, you add here the options that the CLI will transform into a Webpack configuration. You can have many different scaffolds named as you prefer, representing different configurations like `dev.config` or `prod.config`:
90+
This is your scaffold, you add here the options that the CLI will transform into a webpack configuration. You can have many different scaffolds named as you prefer, representing different configurations like `dev.config` or `prod.config`:
9191

9292
```js
9393
constructor(args, opts) {
@@ -101,7 +101,7 @@ constructor(args, opts) {
101101

102102
### `myObj.webpackOptions` (required)
103103

104-
This object has the same format as a regular Webpack configuration, so you declare here the properties that you want to scaffold, like `entry`, `output` and `context`. You can initialize this inside a yeoman method:
104+
This object has the same format as a regular webpack configuration, so you declare here the properties that you want to scaffold, like `entry`, `output` and `context`. You can initialize this inside a yeoman method:
105105

106106
```js
107107
this.options.env.configuration.dev.webpackOptions = {

0 commit comments

Comments
 (0)
Please sign in to comment.