client: use precompiled nanohtml to optimize dom element creation

This commit is contained in:
bordun 2018-10-29 10:59:57 +01:00
parent 55487fd1e1
commit dbd6998182
25 changed files with 260 additions and 165 deletions

View file

@ -1,6 +1,7 @@
var build = require('./build'),
path = require('path'),
babelify = require('babelify'),
nanohtml = require('nanohtml'),
watch = process.argv.includes('--watch'),
prod = process.argv.includes('--prod'),
through = require('through'),
@ -19,7 +20,8 @@ var ignores = ['**/*.min.js', '**/jquery.ui.js', 'gyronorm.complete.min.js'],
}
var transforms = [
[transformWrapper(babelify)]
[transformWrapper(babelify)],
[transformWrapper(nanohtml)]
]
if (prod) {