From 498569cee4e745ec2a9bb1692792fdbe82dea81f Mon Sep 17 00:00:00 2001 From: Raphael Pierzina Date: Fri, 9 Dec 2016 15:24:10 +0000 Subject: [PATCH] Add name and version fields to package.json in webpack guide --- content/docs/guides/webpack/contents.lr | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/docs/guides/webpack/contents.lr b/content/docs/guides/webpack/contents.lr index d56c082d..fe5d62ba 100644 --- a/content/docs/guides/webpack/contents.lr +++ b/content/docs/guides/webpack/contents.lr @@ -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 } ```