Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
| async toggle() { | |
| if (!this._playerModal) { | |
| const { PlayerModalComponent } = await import( '../player-modal/player-modal.component'); | |
| this._playerModal = PlayerModalComponent; | |
| } | |
| const modalInstance = await this.modalCtrl.create({ | |
| component: this._playerModal, | |
| swipeToClose: true, | |
| cssClass: 'full-modal', | |
| }); |
| //Twitter: https://twitter.com/DamianCatanzaro | |
| const html = "<html> \ | |
| <head> \ | |
| <style> \ | |
| body { \ | |
| margin: 0; \ | |
| background-color: cyan; \ | |
| width: 500px; \ | |
| height: 500px; \ |
| build: { | |
| parallel: true, | |
| terser: true, | |
| extend(config, ctx) { | |
| if (process.env.NODE_ENV !== 'production') { | |
| config.devtool = '#source-map'; | |
| } | |
| if (ctx.isDev && ctx.isClient) { | |
| config.module.rules.push({ |
| # Expire rules for static content | |
| # No default expire rule. This config mirrors that of apache as outlined in the | |
| # html5-boilerplate .htaccess file. However, nginx applies rules by location, | |
| # the apache rules are defined by type. A consequence of this difference is that | |
| # if you use no file extension in the url and serve html, with apache you get an | |
| # expire time of 0s, with nginx you'd get an expire header of one month in the | |
| # future (if the default expire rule is 1 month). Therefore, do not use a | |
| # default expire rule with nginx unless your site is completely static |
| # | |
| # Sample nginx.conf optimized for EC2 c1.medium to xlarge instances. | |
| # Also look at the haproxy.conf file for how the backend is balanced. | |
| # | |
| user "nginx" "nginx"; | |
| worker_processes 10; | |
| error_log /var/log/nginx_error.log info; |