From: Alden Daniels Date: Mon, 20 Apr 2015 16:25:29 +0000 (-0500) Subject: Load dygraph-combined when loading from NPM X-Git-Tag: v2.0.0~60^2~3 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=455c79a15cd0b6a9d1ad9b6b80d02e6e5f77815a;p=dygraphs.git Load dygraph-combined when loading from NPM Today, when loading dygraphs from NPM via browserify you need to include: ```javascript var Dygraph = require('dygraphs/dygraph-combined.js'); ``` Being able to do this: ```javascript var Dygraph = require('dygraphs'); ``` Is preferable. --- diff --git a/package.json b/package.json index 82d961b..0b04689 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "dygraphs", "version": "1.1.0", "description": "dygraphs is a fast, flexible open source JavaScript charting library.", - "main": "dygraph.js", + "main": "dygraph-combined.js", "directories": { "doc": "docs", "test": "tests"