mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-01 19:57:48 +08:00
parent
05ca2d1bae
commit
42e74d1d65
@ -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
|
||||
|
10
test/ssr/require.test.js
Normal file
10
test/ssr/require.test.js
Normal file
@ -0,0 +1,10 @@
|
||||
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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user