From 75a3c5f6ff8b8fe57da037f77a203b626071dd0b Mon Sep 17 00:00:00 2001 From: Thomas Gratier Date: Fri, 24 Apr 2015 03:41:52 +0200 Subject: [PATCH] Make package.json compatible for npm frontend use This PR augments package.json to ease OpenLayers 3 frontend development through NPM. See this post on NPM blog http://blog.npmjs.org/post/112712169830/making-your-jquery-plugin-work-better-with-npm to understand my viewpoint and evaluate if it's worth to accept. --- package.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package.json b/package.json index 593d055275..b22db0f450 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,12 @@ "bugs": { "url": "https://github.com/openlayers/ol3/issues" }, + "browser": { + "ol": "./node_modules/openlayers/dist/ol.js" + }, + "style": [ + "./node_modules/openlayers/css/ol.css" + ], "dependencies": { "async": "0.9.0", "closure-util": "1.4.0",