client: use precompiled nanohtml to optimize dom element creation
This commit is contained in:
parent
f328b6f73f
commit
db74dcc4cd
25 changed files with 260 additions and 165 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue