Had to fiddle a bit to minify inlined HTML and CSS resources inside an ES6 class - here is what I did.https://paul.kinlan.me/minifiying-a-custom-element-es6-class/ …
-
-
Replying to @Paul_Kinlan
I used to use https://www.npmjs.com/package/static-module … for stuff like this, which avoids regex. Not sure if there's a non-browserify version.
1 reply 0 retweets 2 likes -
Replying to @jaffathecake @Paul_Kinlan
Actually, my memory is bad, it doesn't depend on browserify.
1 reply 0 retweets 1 like -
Replying to @jaffathecake @Paul_Kinlan
It's so painful to see embedding HTML and CSS in JS. We need to avoid this (overall).
4 replies 10 retweets 26 likes -
Alex you're always on point
1 reply 0 retweets 0 likes
If by "on point" you mean "a bit of an ass, really", then yes ;-)
10:56 PM - 23 Apr 2017
0 replies
0 retweets
4 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.