diff --git a/.eslintrc b/.eslintrc
index 86d102d90..d6a85f8e0 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -2,5 +2,9 @@
"extends": ["vue"],
"env": {
"browser": true
+ },
+ "globals": {
+ "Docsify": true,
+ "$docsify": true
}
}
diff --git a/build/build.js b/build/build.js
index 96adf07f7..ceeb3c335 100644
--- a/build/build.js
+++ b/build/build.js
@@ -32,26 +32,26 @@ build({
plugins: [commonjs(), nodeResolve()]
})
-// build({
-// entry: 'plugins/search.js',
-// output: 'plugins/search.js',
-// moduleName: 'D.Search'
-// })
+build({
+ entry: 'plugins/search/index.js',
+ output: 'plugins/search.js',
+ moduleName: 'D.Search'
+})
-// build({
-// entry: 'plugins/ga.js',
-// output: 'plugins/ga.js',
-// moduleName: 'D.GA'
-// })
+build({
+ entry: 'plugins/ga.js',
+ output: 'plugins/ga.js',
+ moduleName: 'D.GA'
+})
if (isProd) {
build({
- entry: 'index.js',
+ entry: 'core/index.js',
output: 'docsify.min.js',
plugins: [commonjs(), nodeResolve(), uglify()]
})
build({
- entry: 'plugins/search.js',
+ entry: 'plugins/search/index.js',
output: 'plugins/search.min.js',
moduleName: 'D.Search',
plugins: [uglify()]
diff --git a/docs/index.html b/docs/index.html
index 7748c821b..2b2f9d340 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -10,7 +10,7 @@
-