From d19c1f72e496d773d751255243e7162f78aec977 Mon Sep 17 00:00:00 2001 From: Devid Farinelli Date: Fri, 15 Mar 2019 15:27:36 +0100 Subject: [PATCH] docs(scaffolding): lowercase Webpack --- SCAFFOLDING.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SCAFFOLDING.md b/SCAFFOLDING.md index 7897d4d4f19..1c48a41702f 100644 --- a/SCAFFOLDING.md +++ b/SCAFFOLDING.md @@ -1,6 +1,6 @@ # Introduction -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. +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. ## Creating a scaffold @@ -60,7 +60,7 @@ webpack-cli init webpack-scaffold-yourpackage ## API -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: +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: > 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. @@ -87,7 +87,7 @@ constructor(args, opts) { ``` ### `opts.env.configuration.myObj` (required) -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`: +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`: ```js constructor(args, opts) { @@ -101,7 +101,7 @@ constructor(args, opts) { ### `myObj.webpackOptions` (required) -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: +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: ```js this.options.env.configuration.dev.webpackOptions = {