Skip to content

Commit 94bc415

Browse files
jhildenbiddleQingWei-Li
authored andcommitted
feat: Add docsify version to $window.docsify object (#641)
Fix #521 Please makes sure these boxes are checked before submitting your PR, thank you! * [ x ] Make sure you are merging your commits to `master` branch. * [ x ] Add some descriptions and refer relative issues for you PR. * [ x ] DO NOT include files inside `lib` directory.
1 parent 9e86017 commit 94bc415

File tree

4 files changed

+4032
-4071
lines changed

4 files changed

+4032
-4071
lines changed

build/build.js

+2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ const isProd = process.env.NODE_ENV === 'production'
88
const version = process.env.VERSION || require('../package.json').version
99
const chokidar = require('chokidar')
1010
const path = require('path')
11+
const json = require('rollup-plugin-json')
1112

1213
const build = function(opts) {
1314
rollup
1415
.rollup({
1516
input: opts.input,
1617
plugins: (opts.plugins || []).concat([
18+
json(),
1719
buble(),
1820
commonjs(),
1921
nodeResolve(),

0 commit comments

Comments
 (0)