2019-05-22 17:31:09 +03:00
|
|
|
const path = require('path')
|
2019-05-09 13:03:18 +03:00
|
|
|
require('dotenv').config({
|
2019-05-22 17:31:09 +03:00
|
|
|
path: path.resolve(__dirname, '..', '.env')
|
|
|
|
})
|
|
|
|
const fs = require('fs')
|
2019-05-09 13:03:18 +03:00
|
|
|
|
2019-05-22 17:31:09 +03:00
|
|
|
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`
|
2019-05-09 13:03:18 +03:00
|
|
|
|
2019-05-22 17:31:09 +03:00
|
|
|
fs.copyFileSync(path.resolve(stylePath, filename), path.resolve(stylePath, destinationFilename))
|