1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-18 15:33:21 +01:00
metamask-extension/ui/css.js

27 lines
944 B
JavaScript
Raw Normal View History

const fs = require('fs')
2016-06-21 22:56:04 +02:00
const path = require('path')
module.exports = bundleCss
var cssFiles = {
'index.css': fs.readFileSync(path.join(__dirname, '/app/css/output/index.css'), 'utf8'),
2017-08-18 13:51:52 +02:00
'first-time.css': fs.readFileSync(path.join(__dirname, '../mascara/src/app/first-time/index.css'), 'utf8'),
2017-07-20 21:50:42 +02:00
'react-tooltip-component.css': fs.readFileSync(path.join(__dirname, '..', 'node_modules', 'react-tooltip-component', 'dist', 'react-tooltip-component.css'), 'utf8'),
'react-css': fs.readFileSync(path.join(__dirname, '..', 'node_modules', 'react-select', 'dist', 'react-select.css'), 'utf8'),
}
2016-06-21 22:18:32 +02:00
function bundleCss () {
var cssBundle = Object.keys(cssFiles).reduce(function (bundle, fileName) {
var fileContent = cssFiles[fileName]
var output = String()
2016-06-21 22:18:32 +02:00
output += '/*========== ' + fileName + ' ==========*/\n\n'
output += fileContent
output += '\n\n'
2016-06-21 22:18:32 +02:00
return bundle + output
}, String())
return cssBundle
}