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.
This commit is contained in:
parent
9e860177cb
commit
94bc415534
4 changed files with 4013 additions and 4052 deletions
|
|
@ -8,12 +8,14 @@ const isProd = process.env.NODE_ENV === 'production'
|
|||
const version = process.env.VERSION || require('../package.json').version
|
||||
const chokidar = require('chokidar')
|
||||
const path = require('path')
|
||||
const json = require('rollup-plugin-json')
|
||||
|
||||
const build = function(opts) {
|
||||
rollup
|
||||
.rollup({
|
||||
input: opts.input,
|
||||
plugins: (opts.plugins || []).concat([
|
||||
json(),
|
||||
buble(),
|
||||
commonjs(),
|
||||
nodeResolve(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue