Add name and version fields to package.json in webpack guide

This commit is contained in:
Raphael Pierzina 2016-12-09 15:24:10 +00:00
parent 875f594b6b
commit 498569cee4
1 changed files with 6 additions and 0 deletions

View File

@ -37,8 +37,14 @@ Now you need to configure webpack. The plugin expects a webpack project in the
This file instructs `npm` which packages we will need. All we need for a
start is to create an almost empty file:
Recent versions of `npm` require `name` and `version` fields in your
`package.json` (see [npm package.json docs
:ext](https://docs.npmjs.com/files/package.json)).
```json
{
"name": "foobar",
"version": "0.1.0",
"private": true
}
```