Skip to content

Commit

Permalink
fix: build config
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Feb 11, 2018
1 parent 9e824a4 commit 342438f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build/build-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ rollup
plugins: [
async(),
replace({
__VERSION__: process.env.VERSION || require('../package.json').version
__VERSION__: process.env.VERSION || require('../package.json').version,
'process.env.SSR': true
}),
buble({
transforms: {
Expand Down
3 changes: 2 additions & 1 deletion build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ var build = function (opts) {
commonjs(),
nodeResolve(),
replace({
__VERSION__: version
__VERSION__: version,
'process.env.SSR': false
})
])
})
Expand Down

0 comments on commit 342438f

Please sign in to comment.