summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-core')
-rw-r--r--packages/gitbook-core/.gitignore2
-rw-r--r--packages/gitbook-core/.npmignore2
-rw-r--r--packages/gitbook-core/package.json2
-rw-r--r--packages/gitbook-core/src/index.js4
4 files changed, 6 insertions, 4 deletions
diff --git a/packages/gitbook-core/.gitignore b/packages/gitbook-core/.gitignore
index 1c25790..eed58d7 100644
--- a/packages/gitbook-core/.gitignore
+++ b/packages/gitbook-core/.gitignore
@@ -1 +1 @@
-gitbook.core.js.min
+gitbook.core.min.js
diff --git a/packages/gitbook-core/.npmignore b/packages/gitbook-core/.npmignore
index a128ba4..5862c13 100644
--- a/packages/gitbook-core/.npmignore
+++ b/packages/gitbook-core/.npmignore
@@ -1,3 +1,3 @@
src
!lib
-!gitbook.core.js.min
+!gitbook.core.min.js
diff --git a/packages/gitbook-core/package.json b/packages/gitbook-core/package.json
index 071837b..c75f05d 100644
--- a/packages/gitbook-core/package.json
+++ b/packages/gitbook-core/package.json
@@ -23,7 +23,7 @@
},
"scripts": {
"dist-lib": "rm -rf lib/ && babel -d lib/ src/",
- "dist-standalone": "browserify -r react -r react-dom -r ./lib/index.js:gitbook-core | uglifyjs -c > gitbook.core.js.min",
+ "dist-standalone": "browserify -r ./lib/index.js:gitbook-core -r react -r react-dom ./lib/index.js | uglifyjs -c > gitbook.core.min.js",
"prepublish": "npm run dist-lib && npm run dist-standalone"
},
"repository": {
diff --git a/packages/gitbook-core/src/index.js b/packages/gitbook-core/src/index.js
index 4a2f21f..84dcd47 100644
--- a/packages/gitbook-core/src/index.js
+++ b/packages/gitbook-core/src/index.js
@@ -1,3 +1,4 @@
+const Head = require('react-helmet');
const { InjectedComponent, InjectedComponentSet } = require('./components/InjectedComponent');
const { registerComponent } = require('./actions/components');
const ACTIONS = require('./actions/TYPES');
@@ -16,5 +17,6 @@ module.exports = {
renderComponent,
registerComponent,
InjectedComponent,
- InjectedComponentSet
+ InjectedComponentSet,
+ Head
};