This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Xms1024m | |
-Xmx1536m | |
-XX:ReservedCodeCacheSize=512m | |
-XX:+UseCompressedOops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var path = require('path'); | |
// used deps | |
var inlineCSS = require('inline-css'); | |
var htmlMinify = require('html-minifier').minify; | |
// working paths | |
var projectFolder = path.resolve(__dirname, '../../'); | |
var workingFolder = path.join(projectFolder, 'build/emails/'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const path = require('path'); | |
const buildPath = 'build/public'; | |
const csslint = require('csslint').CSSLint; | |
const buildCSSPath = | |
fs.readdirSync(buildPath) | |
.filter(f => f.indexOf('.css') > -1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BROWSER } from '../constants/browser'; | |
export function isWebPSupported (browser) { | |
// webp is supported in some browsers | |
// return true immediately | |
// todo: augment list, check versions etc | |
if (typeof browser !== 'undefined' && ( | |
browser.browser === BROWSER.OPERA || | |
browser.browser === BROWSER.CHROME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
"use strict"; | |
var log = require('log-util'); | |
var exec = require('child_process').exec; | |
module.exports = function (cmd) { | |
var command = 'npm run ' + cmd; | |
exec( |
DISCLAIMER:
The whole content comes "as is".
All commentaries refer to author's impression.
Some inconsistency possible as well.
The few details (mainly useful links) were added while transcribing notes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="body"> | |
<div class="dropdown"> | |
<div class="dropdown__content"> | |
<div class="content"> | |
<div class="content__item"> | |
<input type="checkbox" /> | |
Item 1 | |
</div> |
NewerOlder