Skip to content

Commit

Permalink
ci: 也可以从shell中获取环境变量, 使netlify构建成功
Browse files Browse the repository at this point in the history
  • Loading branch information
levy committed May 27, 2019
1 parent 8d1fd2f commit 15b2589
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions styleguide.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
const {VueLoaderPlugin} = require('vue-loader')
const path = require('path')
const glob = require('glob')
const env = require('dotenv').config().parsed
console.log('env: ' + JSON.stringify(env))
const env = Object.assign({}, require('dotenv').config().parsed, {
OSS_KEY: process.env.OSS_KEY,
OSS_SECRET: process.env.OSS_SECRET,
OSS_BUCKET: process.env.OSS_BUCKET,
OSS_REGION: process.env.OSS_REGION
})

const demos = glob.sync('docs/!(basic).md')
const demoSections = [
Expand Down

0 comments on commit 15b2589

Please sign in to comment.