Compress an assets
This commit is contained in:
parent
fb70e3b176
commit
4c2a3d8df0
6 changed files with 19 additions and 5 deletions
|
@ -2,4 +2,4 @@ extends ../base
|
|||
|
||||
block head
|
||||
meta(name='viewport' content='width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no')
|
||||
script(src=`/assets/auth.${version}.ja.js` async defer)
|
||||
script(src=`/assets/auth.${version}.ja.js.gz` async defer)
|
||||
|
|
|
@ -16,7 +16,7 @@ const app = isMobile ? 'mobile' : 'desktop';
|
|||
|
||||
// Load app script
|
||||
const script = document.createElement('script');
|
||||
script.setAttribute('src', `/assets/${app}.${VERSION}.${lang}.js`);
|
||||
script.setAttribute('src', `/assets/${app}.${VERSION}.${lang}.js.gz`);
|
||||
script.setAttribute('async', 'true');
|
||||
script.setAttribute('defer', 'true');
|
||||
head.appendChild(script);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
extends ../base
|
||||
|
||||
block head
|
||||
script(src=`/assets/dev.${version}.js` async defer)
|
||||
script(src=`/assets/dev.${version}.ja.js.gz` async defer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue