diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-06-22 05:24:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-22 05:24:28 +0800 |
commit | 537328b5298a42f9d20862d42b9012babcda373c (patch) | |
tree | 9a5728447f5b23a918b4a23c12e91ea1b702e527 /ui/css.js | |
parent | bb7788373d9c234313d651d88c72c18a8e4ca0aa (diff) | |
parent | d7c3e8e9f5182576eb4a990d385ff8ce4ebd417c (diff) | |
download | tangerine-wallet-browser-537328b5298a42f9d20862d42b9012babcda373c.tar tangerine-wallet-browser-537328b5298a42f9d20862d42b9012babcda373c.tar.gz tangerine-wallet-browser-537328b5298a42f9d20862d42b9012babcda373c.tar.bz2 tangerine-wallet-browser-537328b5298a42f9d20862d42b9012babcda373c.tar.lz tangerine-wallet-browser-537328b5298a42f9d20862d42b9012babcda373c.tar.xz tangerine-wallet-browser-537328b5298a42f9d20862d42b9012babcda373c.tar.zst tangerine-wallet-browser-537328b5298a42f9d20862d42b9012babcda373c.zip |
Merge pull request #303 from MetaMask/AutoLint
Auto lint
Diffstat (limited to 'ui/css.js')
-rw-r--r-- | ui/css.js | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -1,25 +1,26 @@ const fs = require('fs') +const path = require('path') module.exports = bundleCss var cssFiles = { - 'fonts.css': fs.readFileSync(__dirname+'/app/css/fonts.css', 'utf8'), - 'reset.css': fs.readFileSync(__dirname+'/app/css/reset.css', 'utf8'), - 'lib.css': fs.readFileSync(__dirname+'/app/css/lib.css', 'utf8'), - 'index.css': fs.readFileSync(__dirname+'/app/css/index.css', 'utf8'), - 'transitions.css': fs.readFileSync(__dirname+'/app/css/transitions.css', 'utf8'), + 'fonts.css': fs.readFileSync(path.join(__dirname, '/app/css/fonts.css'), 'utf8'), + 'reset.css': fs.readFileSync(path.join(__dirname, '/app/css/reset.css'), 'utf8'), + 'lib.css': fs.readFileSync(path.join(__dirname, '/app/css/lib.css'), 'utf8'), + 'index.css': fs.readFileSync(path.join(__dirname, '/app/css/index.css'), 'utf8'), + 'transitions.css': fs.readFileSync(path.join(__dirname, '/app/css/transitions.css'), 'utf8'), } -function bundleCss() { - var cssBundle = Object.keys(cssFiles).reduce(function(bundle, fileName){ +function bundleCss () { + var cssBundle = Object.keys(cssFiles).reduce(function (bundle, fileName) { var fileContent = cssFiles[fileName] var output = String() - output += '/*========== '+fileName+' ==========*/\n\n' + output += '/*========== ' + fileName + ' ==========*/\n\n' output += fileContent output += '\n\n' - return bundle+output + return bundle + output }, String()) return cssBundle |