fix: build config

This commit is contained in:
qingwei.li 2018-02-10 16:24:34 +08:00 committed by cinwell.li
parent 9e824a4958
commit 342438f2a7
2 changed files with 4 additions and 2 deletions

View File

@ -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: {

View File

@ -18,7 +18,8 @@ var build = function (opts) {
commonjs(),
nodeResolve(),
replace({
__VERSION__: version
__VERSION__: version,
'process.env.SSR': false
})
])
})