tokenbridge/ui/scripts/selectTheme.js
Przemyslaw Rzad 6dc4fc6acd
Configured Prettier (#60)
* Apply prettier fixes for UI

* Integrate prettier into linting. Remove duplicate .prettierrc.

* Common .eslintignore. Removed reduntant prettier check

* Apply prettier on ui script

* Correct linting

* Duplicate plugin

* Common plugin
2019-05-22 16:31:09 +02:00

18 lines
499 B
JavaScript

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'
let filename
if (process.env.APP_STYLES === 'classic') {
filename = 'application.classic.css'
} else {
filename = 'application.core.css'
}
fs.copyFileSync(path.resolve(stylePath, filename), path.resolve(stylePath, destinationFilename))