tokenbridge/ui/scripts/selectTheme.js

13 lines
445 B
JavaScript
Raw Normal View History

const path = require('path')
require('dotenv').config({
path: path.resolve(__dirname, '..', '.env')
})
const fs = require('fs')
const stylePath = path.resolve(__dirname, '..', 'src', 'assets', 'stylesheets')
const destinationFilename = 'application.css'
2020-05-25 23:30:41 +03:00
const theme = process.env.UI_STYLES || 'core'
const filename = `application.${theme}.css`
fs.copyFileSync(path.resolve(stylePath, filename), path.resolve(stylePath, destinationFilename))