diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-05-17 00:28:45 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-05-17 00:28:45 +0900 |
| commit | 4c2a3d8df0d1a1fee48b0624b4b5a9a20db0d53e (patch) | |
| tree | 8bbea177b1d374a3a1fa5c7e6f441acde71dba12 /src | |
| parent | Refactoring (diff) | |
| download | sharkey-4c2a3d8df0d1a1fee48b0624b4b5a9a20db0d53e.tar.gz sharkey-4c2a3d8df0d1a1fee48b0624b4b5a9a20db0d53e.tar.bz2 sharkey-4c2a3d8df0d1a1fee48b0624b4b5a9a20db0d53e.zip | |
Compress an assets
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/app/auth/view.pug | 2 | ||||
| -rw-r--r-- | src/web/app/client/script.js | 2 | ||||
| -rw-r--r-- | src/web/app/dev/view.pug | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/web/app/auth/view.pug b/src/web/app/auth/view.pug index afa1e408f8..7fc4a2a70d 100644 --- a/src/web/app/auth/view.pug +++ b/src/web/app/auth/view.pug @@ -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) diff --git a/src/web/app/client/script.js b/src/web/app/client/script.js index 465d3edb38..c069b0ee89 100644 --- a/src/web/app/client/script.js +++ b/src/web/app/client/script.js @@ -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); diff --git a/src/web/app/dev/view.pug b/src/web/app/dev/view.pug index 1a9a0e5bbd..9bba6c11c5 100644 --- a/src/web/app/dev/view.pug +++ b/src/web/app/dev/view.pug @@ -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) |