Commit 42e74d1d authored by iamkun's avatar iamkun Committed by Zhi Cun

Chore: SSR test (#16797)

* init ssr test

* ssr test
parent 05ca2d1b
......@@ -15,6 +15,9 @@ then
# build
VERSION=$VERSION npm run dist
# ssr test
node test/ssr/require.test.js
# publish theme
echo "Releasing theme-chalk $VERSION ..."
cd packages/theme-chalk
......
const path = require('path');
try {
process.env.VUE_ENV = 'server';
require(path.join(process.env.PWD, './lib/index'));
console.log('SSR require test PASS');
} catch (e) {
console.error('SSR require test error');
throw Error(e);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment