theme.config.js 258 B

123456789
  1. const fs = require('fs')
  2. const path = require('path')
  3. const lessToJs = require('less-vars-to-js')
  4. module.exports = () => {
  5. const themePath = path.join(__dirname, './src/themes/default.less')
  6. return lessToJs(fs.readFileSync(themePath, 'utf8'))
  7. }