Skip to content

Commit

Permalink
fix: build for ssr package
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed May 30, 2017
1 parent 490c8a1 commit 4cb20a5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 11 additions & 2 deletions build/build-ssr.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
var rollup = require('rollup')
var async = require('rollup-plugin-async')
var babel = require('rollup-plugin-babel')
var isProd = process.argv[process.argv.length - 1] !== '--dev'

rollup
.rollup({
entry: 'packages/docsify-server-renderer/index.js',
plugins: [
async()
babel({
presets: [
[
'es2015',
{
modules: false
}
]
]
})
],
onwarn: function() {}
})
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"zoom-image": "^0.1.4"
},
"devDependencies": {
"babel-preset-es2015": "^6.24.1",
"cssnano": "^3.10.0",
"eslint": "^3.18.0",
"eslint-config-vue": "^2.0.2",
Expand All @@ -43,7 +44,7 @@
"postcss": "^5.2.16",
"postcss-salad": "^1.0.8",
"rollup": "^0.41.6",
"rollup-plugin-async": "^1.2.0",
"rollup-plugin-babel": "^2.7.1",
"rollup-plugin-buble": "^0.15.0",
"rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-node-resolve": "^2.0.0",
Expand Down

0 comments on commit 4cb20a5

Please sign in to comment.