1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Change main file to the building one

This commit is contained in:
Denis Demchenko 2018-07-08 13:21:54 +03:00
parent 5149acc2c5
commit b75dff2b57
2 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,7 @@ A Browser detector. Because sometimes, there is no other way, and not even good
# Contents # Contents
- [Overview](#overview) - [Overview](#overview)
- [Use cases](#use-cases) - [Use cases](#use-cases)
- [Advanced usage](#advanced-usage)
- [How can I help?](#contributing) - [How can I help?](#contributing)
# Overview # Overview
@ -107,6 +108,12 @@ Thus, you can define OS or platform specific rules and they will have more prior
More of API and possibilities you will find in the `docs` folder. More of API and possibilities you will find in the `docs` folder.
# Advanced Usage
By default, `require('bowser')` requires the pre-compiled file, which can
include useless for you polyfills. In case you don't need that, you can choose
using source file requiring bowser like that: `require('bowser/src/bowser`);
Then you get ES2015 file, which is not precompiled and can be easier to debug.
# Contributing # Contributing
If you'd like to contribute a change to bowser, modify the files in `src/`, then run the following (you'll need node + npm installed): If you'd like to contribute a change to bowser, modify the files in `src/`, then run the following (you'll need node + npm installed):

View File

@ -20,7 +20,7 @@
"url": "http://twitter.com/lancedikson" "url": "http://twitter.com/lancedikson"
} }
], ],
"main": "./src/bowser.js", "main": "./dist/bowser.compiled.js",
"typings": "./typings.d.ts", "typings": "./typings.d.ts",
"repository": { "repository": {
"type": "git", "type": "git",