3 ms·
I assume the uglify plugin wasn't commented out when the actual test was run. I haven't tried this myself, but it's worth noting that you can use closure with
by micimize 10y ago
I assume the uglify plugin wasn't commented out when the actual test was run.
I haven't tried this myself, but it's worth noting that you can use closure with webpack: https://github.com/roman01la/webpack-closure-compiler https://github.com/roman01la/webpack-closure-compiler
Hopefully it won't be long before frameworks still depending on html templates are mostly implementing them with es6 tagged template literals, which will make them available for compiler optimizations.
- k__ 10y agoI use t7 with (P)React, which works quite nicely :)
- micimize 10y agoI hadn't heard of t7 - looks very nice. Similar to https://github.com/maxogden/yo-yo https://github.com/maxogden/yo-yo, but I'm impressed with the level of React inter-op and spread support. I meant more on like Angular implementing it's html templates using template literals and importing them into the runtime, making them inspectable. On second thought, it might be less a matter of the underlying logic and more a matter of when templates are evaluated