Set publicPath in production webpack config

This commit is contained in:
Ken-Håvard Lieng 2018-11-07 01:35:53 +01:00
parent ca222ff10d
commit ed40b956b7
5 changed files with 45 additions and 43 deletions

View File

@ -20,8 +20,8 @@
// dist/font/fontello.woff2
// dist/main.34b5e0ff.js.br
// dist/main.b871b061.css.br
// dist/precache-manifest.caac81df9246236300f3d21849f8638d.js.br
// dist/runtime.71d51395.js.br
// dist/precache-manifest.67d0c066b9508167ced2c43584d0c5d5.js.br
// dist/runtime.94e2a260.js.br
// dist/sw.js.br
// dist/vendors~main.09d549af.js.br
// DO NOT EDIT!
@ -96,7 +96,7 @@ func _42ad6c946JsBr() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "4.2ad6c946.js.br", size: 9768, mode: os.FileMode(436), modTime: time.Unix(1541499149, 0)}
info := bindataFileInfo{name: "4.2ad6c946.js.br", size: 9768, mode: os.FileMode(436), modTime: time.Unix(1541549704, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@ -116,7 +116,7 @@ func _51ce46502JsBr() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "5.1ce46502.js.br", size: 2318, mode: os.FileMode(436), modTime: time.Unix(1541499149, 0)}
info := bindataFileInfo{name: "5.1ce46502.js.br", size: 2318, mode: os.FileMode(436), modTime: time.Unix(1541549704, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@ -136,7 +136,7 @@ func _637d7ed80JsBr() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "6.37d7ed80.js.br", size: 1317, mode: os.FileMode(436), modTime: time.Unix(1541499149, 0)}
info := bindataFileInfo{name: "6.37d7ed80.js.br", size: 1317, mode: os.FileMode(436), modTime: time.Unix(1541549704, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@ -156,7 +156,7 @@ func _72948bed1JsBr() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "7.2948bed1.js.br", size: 5941, mode: os.FileMode(436), modTime: time.Unix(1541499149, 0)}
info := bindataFileInfo{name: "7.2948bed1.js.br", size: 5941, mode: os.FileMode(436), modTime: time.Unix(1541549704, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@ -176,12 +176,12 @@ func _800bbe8ccJsBr() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "8.00bbe8cc.js.br", size: 4227, mode: os.FileMode(436), modTime: time.Unix(1541499149, 0)}
info := bindataFileInfo{name: "8.00bbe8cc.js.br", size: 4227, mode: os.FileMode(436), modTime: time.Unix(1541549704, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _assetManifestJson = "\x7b\x0a\x20\x20\x22\x72\x75\x6e\x74\x69\x6d\x65\x2e\x6a\x73\x22\x3a\x20\x22\x72\x75\x6e\x74\x69\x6d\x65\x2e\x37\x31\x64\x35\x31\x33\x39\x35\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x62\x6f\x6f\x74\x2e\x6a\x73\x22\x3a\x20\x22\x62\x6f\x6f\x74\x2e\x66\x62\x65\x61\x31\x33\x38\x31\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x6d\x61\x69\x6e\x2e\x63\x73\x73\x22\x3a\x20\x22\x6d\x61\x69\x6e\x2e\x62\x38\x37\x31\x62\x30\x36\x31\x2e\x63\x73\x73\x22\x2c\x0a\x20\x20\x22\x6d\x61\x69\x6e\x2e\x6a\x73\x22\x3a\x20\x22\x6d\x61\x69\x6e\x2e\x33\x34\x62\x35\x65\x30\x66\x66\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x76\x65\x6e\x64\x6f\x72\x73\x7e\x6d\x61\x69\x6e\x2e\x6a\x73\x22\x3a\x20\x22\x76\x65\x6e\x64\x6f\x72\x73\x7e\x6d\x61\x69\x6e\x2e\x30\x39\x64\x35\x34\x39\x61\x66\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x34\x2e\x32\x61\x64\x36\x63\x39\x34\x36\x2e\x6a\x73\x22\x3a\x20\x22\x34\x2e\x32\x61\x64\x36\x63\x39\x34\x36\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x35\x2e\x31\x63\x65\x34\x36\x35\x30\x32\x2e\x6a\x73\x22\x3a\x20\x22\x35\x2e\x31\x63\x65\x34\x36\x35\x30\x32\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x36\x2e\x33\x37\x64\x37\x65\x64\x38\x30\x2e\x6a\x73\x22\x3a\x20\x22\x36\x2e\x33\x37\x64\x37\x65\x64\x38\x30\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x37\x2e\x32\x39\x34\x38\x62\x65\x64\x31\x2e\x6a\x73\x22\x3a\x20\x22\x37\x2e\x32\x39\x34\x38\x62\x65\x64\x31\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x38\x2e\x30\x30\x62\x62\x65\x38\x63\x63\x2e\x6a\x73\x22\x3a\x20\x22\x38\x2e\x30\x30\x62\x62\x65\x38\x63\x63\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x70\x72\x65\x63\x61\x63\x68\x65\x2d\x6d\x61\x6e\x69\x66\x65\x73\x74\x2e\x63\x61\x61\x63\x38\x31\x64\x66\x39\x32\x34\x36\x32\x33\x36\x33\x30\x30\x66\x33\x64\x32\x31\x38\x34\x39\x66\x38\x36\x33\x38\x64\x2e\x6a\x73\x22\x3a\x20\x22\x70\x72\x65\x63\x61\x63\x68\x65\x2d\x6d\x61\x6e\x69\x66\x65\x73\x74\x2e\x63\x61\x61\x63\x38\x31\x64\x66\x39\x32\x34\x36\x32\x33\x36\x33\x30\x30\x66\x33\x64\x32\x31\x38\x34\x39\x66\x38\x36\x33\x38\x64\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x73\x77\x2e\x6a\x73\x22\x3a\x20\x22\x73\x77\x2e\x6a\x73\x22\x0a\x7d"
var _assetManifestJson = "\x7b\x0a\x20\x20\x22\x72\x75\x6e\x74\x69\x6d\x65\x2e\x6a\x73\x22\x3a\x20\x22\x2f\x72\x75\x6e\x74\x69\x6d\x65\x2e\x39\x34\x65\x32\x61\x32\x36\x30\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x62\x6f\x6f\x74\x2e\x6a\x73\x22\x3a\x20\x22\x2f\x62\x6f\x6f\x74\x2e\x66\x62\x65\x61\x31\x33\x38\x31\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x6d\x61\x69\x6e\x2e\x63\x73\x73\x22\x3a\x20\x22\x2f\x6d\x61\x69\x6e\x2e\x62\x38\x37\x31\x62\x30\x36\x31\x2e\x63\x73\x73\x22\x2c\x0a\x20\x20\x22\x6d\x61\x69\x6e\x2e\x6a\x73\x22\x3a\x20\x22\x2f\x6d\x61\x69\x6e\x2e\x33\x34\x62\x35\x65\x30\x66\x66\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x76\x65\x6e\x64\x6f\x72\x73\x7e\x6d\x61\x69\x6e\x2e\x6a\x73\x22\x3a\x20\x22\x2f\x76\x65\x6e\x64\x6f\x72\x73\x7e\x6d\x61\x69\x6e\x2e\x30\x39\x64\x35\x34\x39\x61\x66\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x34\x2e\x32\x61\x64\x36\x63\x39\x34\x36\x2e\x6a\x73\x22\x3a\x20\x22\x2f\x34\x2e\x32\x61\x64\x36\x63\x39\x34\x36\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x35\x2e\x31\x63\x65\x34\x36\x35\x30\x32\x2e\x6a\x73\x22\x3a\x20\x22\x2f\x35\x2e\x31\x63\x65\x34\x36\x35\x30\x32\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x36\x2e\x33\x37\x64\x37\x65\x64\x38\x30\x2e\x6a\x73\x22\x3a\x20\x22\x2f\x36\x2e\x33\x37\x64\x37\x65\x64\x38\x30\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x37\x2e\x32\x39\x34\x38\x62\x65\x64\x31\x2e\x6a\x73\x22\x3a\x20\x22\x2f\x37\x2e\x32\x39\x34\x38\x62\x65\x64\x31\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x38\x2e\x30\x30\x62\x62\x65\x38\x63\x63\x2e\x6a\x73\x22\x3a\x20\x22\x2f\x38\x2e\x30\x30\x62\x62\x65\x38\x63\x63\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x70\x72\x65\x63\x61\x63\x68\x65\x2d\x6d\x61\x6e\x69\x66\x65\x73\x74\x2e\x36\x37\x64\x30\x63\x30\x36\x36\x62\x39\x35\x30\x38\x31\x36\x37\x63\x65\x64\x32\x63\x34\x33\x35\x38\x34\x64\x30\x63\x35\x64\x35\x2e\x6a\x73\x22\x3a\x20\x22\x2f\x70\x72\x65\x63\x61\x63\x68\x65\x2d\x6d\x61\x6e\x69\x66\x65\x73\x74\x2e\x36\x37\x64\x30\x63\x30\x36\x36\x62\x39\x35\x30\x38\x31\x36\x37\x63\x65\x64\x32\x63\x34\x33\x35\x38\x34\x64\x30\x63\x35\x64\x35\x2e\x6a\x73\x22\x2c\x0a\x20\x20\x22\x73\x77\x2e\x6a\x73\x22\x3a\x20\x22\x2f\x73\x77\x2e\x6a\x73\x22\x0a\x7d"
func assetManifestJsonBytes() ([]byte, error) {
return bindataRead(
@ -196,7 +196,7 @@ func assetManifestJson() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "asset-manifest.json", size: 507, mode: os.FileMode(436), modTime: time.Unix(1541499149, 0)}
info := bindataFileInfo{name: "asset-manifest.json", size: 519, mode: os.FileMode(436), modTime: time.Unix(1541549704, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@ -216,7 +216,7 @@ func bootFbea1381JsBr() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "boot.fbea1381.js.br", size: 157, mode: os.FileMode(436), modTime: time.Unix(1541499149, 0)}
info := bindataFileInfo{name: "boot.fbea1381.js.br", size: 157, mode: os.FileMode(436), modTime: time.Unix(1541549704, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@ -456,7 +456,7 @@ func main34b5e0ffJsBr() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "main.34b5e0ff.js.br", size: 11010, mode: os.FileMode(436), modTime: time.Unix(1541499149, 0)}
info := bindataFileInfo{name: "main.34b5e0ff.js.br", size: 11010, mode: os.FileMode(436), modTime: time.Unix(1541549704, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@ -476,52 +476,52 @@ func mainB871b061CssBr() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "main.b871b061.css.br", size: 2437, mode: os.FileMode(436), modTime: time.Unix(1541499149, 0)}
info := bindataFileInfo{name: "main.b871b061.css.br", size: 2437, mode: os.FileMode(436), modTime: time.Unix(1541549704, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _precacheManifestCaac81df9246236300f3d21849f8638dJsBr = "\x1b\x27\x05\x00\xac\x8e\x77\x39\xb0\x07\x19\x33\x81\xae\x4b\x64\x11\x9d\x74\xef\x7e\x99\xb2\x7d\xf5\xfd\x1d\x4e\x62\xc4\x1a\x31\x78\xc0\x0b\xf6\x0a\xa4\xab\x41\x44\xf6\xfa\xa6\x48\xcf\x56\x7f\x89\xc1\xdd\x69\x05\x16\x9d\x9d\x3e\xdf\x4d\xd0\x33\x3d\xd7\x31\x9f\x5f\x6d\x0c\x64\x00\xfe\x8c\xe2\x28\x90\xd4\xa3\xf0\x63\x83\x3c\x75\xba\x84\x21\x8a\xa7\x47\x4c\x2d\x38\xaf\x11\x54\xc5\x47\x17\x74\xef\x0e\x87\x9b\xff\xfe\xf6\x8f\xa1\xd2\x5b\xc6\x7a\x4a\x7a\x3b\x1a\xbc\x6a\x75\x6d\xb0\x0e\x3d\xa7\x41\x21\xf4\x9e\xb6\x7e\xdd\x7f\xca\xb2\x5d\xfb\x1e\xd7\xf7\xc7\x3b\x9e\x1f\xd5\xc2\x52\xe4\xa3\xe6\x27\x5c\xa0\x56\xa9\xa0\xbe\xbf\x7e\xe7\x14\x3a\x39\xe2\x2a\xe0\x5c\x26\xc7\xa7\xd7\x5a\x12\xb3\x98\x01\xa1\x3f\x50\xcd\xfd\xf1\x7f\xe2\xb9\x7b\x20\x6b\x26\x88\xe8\x9d\xa9\x67\x62\x15\x92\x6e\x2c\xe4\x7d\x09\x11\x3f\x2a\x96\xd0\x86\x99\x2c\x14\xca\xd8\xc7\xd7\x86\x7e\x3c\xa7\xfd\x83\xe5\xd9\xdd\x0b\x03\x0c\xaf\x7c\x6c\x77\x3d\xc1\x23\xd9\x83\x1e\xb1\x2b\xb5\x73\x39\x93\xd7\xd9\x75\xbc\xaa\x75\x35\xbd\xd2\xe7\x85\x0a\x7d\x5d\xfd\x9f\x19\xaa\xf0\xd8\xca\xc9\x3d\xb6\x12\x29\x96\x73\x69\xd3\xac\x29\x44\x97\x44\x0f\x87\x5e\x0a\x38\xfb\x73\xfb\xf3\xfb\xcf\x47\xb2\x16\x58\xeb\xab\x84\x95\x36\x2e\x3a\x33\x68\x05\xb3\xe1\x58\x43\x0f\x07\xe1\x94\x40\xad\x36\x04\x8f\xc7\xfa\x02\x3f\x9c\x10\x94\x4a\x65\x12\x62\xc8\xec\xde\x32\x3c\x11\x85\x78\x1b\x1b\x7a\xf4\xfd\xee\xcf\x86\x3e\x27\xdc\x10\xf3\x8c\x1c\x25\x3b\x38\xa2\x15\x08\x50\x02\xdb\x49\x22\xc7\x02\xa4\x9a\x68\x47\xde\x08\x33\x3c\x27\xb9\x09\xd8\x5c\x05\xde\x3a\x2d\xf2\x6a\x52\xd1\x91\x1d\x5d\xc8\x27\xc1\x98\x42\x0f\x1b\xf2\xba\x84\x88\x1f\x15\x66\x8b\x29\xd0\x62\xd0\xa6\xcc\x90\x09\x64\xbd\x88\x90\x8a\xbc\x2c\x8f\x58\x03\xf9\x22\x1a\x5e\xc1\xc8\x72\xd1\xb1\xf6"
var _precacheManifest67d0c066b9508167ced2c43584d0c5d5JsBr = "\x1b\x31\x05\x00\x2c\x0e\xec\xb6\x1e\x93\x25\xd5\xc2\xaf\x1f\x32\x06\x9f\x74\xb9\x34\x11\xcd\x98\xe7\xbc\x5d\x12\x01\x06\xf8\x67\x6b\x4a\xff\xca\x52\x20\x5d\x0d\x22\xb2\xd7\x37\x45\x7a\xb6\x5a\x81\x45\x67\xa7\xff\xff\x37\xf5\x87\x98\xeb\x6f\x2c\x5f\x83\xe2\xb1\x8f\x5f\xb3\xb8\x0d\x92\x6a\x80\x0f\x1b\x42\x9e\xb5\xb9\x3f\x44\xf0\x1b\x1a\x1a\xae\xfb\xf4\xc1\x16\x91\x86\x78\xf0\xca\xf5\xf4\xf4\xf7\xb9\x7b\x98\x3d\xfc\xf7\xb7\x6f\x0c\x15\x7d\xca\x58\x4c\x99\x3e\xbd\x0d\x5e\xb5\xba\x36\x58\x87\x1e\xf5\xa0\x10\xba\xc5\xf5\xdf\x9e\x7f\xd2\xe2\xbb\x5d\x7e\xc4\xf5\xfd\xe5\x86\x27\x78\xbb\xca\xc9\x3d\xb6\x12\x29\x96\x73\x69\xd3\xac\x29\x44\x97\x44\x0f\x17\xe7\xb9\xb4\xee\x2b\xc3\x1a\x7f\x1e\x7f\x7e\xff\xf9\xfc\xa3\xe5\x8d\xfe\xf8\x33\x43\xb1\x1e\x7b\x82\x47\xb2\x07\x3d\x62\x57\x6a\xe7\x72\x26\xaf\xb3\xeb\x78\x55\x19\xbf\xe0\x33\x19\x18\x81\x22\x40\x44\xef\x4c\x3d\x13\xab\x90\x74\xa3\x6a\x7c\xdf\x17\x13\x19\x16\xca\x47\x9a\x9c\x0c\x88\x21\xc0\x8b\xcf\x2c\x41\xff\xf9\xed\xf7\xe6\x8d\x2a\x1f\x91\xfd\x2a\x61\xa5\x8d\x8b\xce\x0c\x5a\xc1\x6c\x38\xd6\xd0\xc3\x41\x38\x25\x23\xcd\x97\xde\x81\xed\xe9\xbe\xc0\x0f\x27\x04\xa5\x52\x99\x84\x18\x32\xbb\xb7\x0c\x4f\x84\x09\x8f\x09\xbd\xf4\xf3\xb3\xbf\xa6\xf3\x73\xc2\x0d\x31\xcf\xc8\x51\xb2\x83\x23\x5a\x81\x00\x25\xb0\x9d\x24\x32\x16\xef\x10\x9a\x55\x8a\xa7\x54\x8e\x4f\xaf\xb5\x24\x66\x31\x03\x9a\xf4\xa2\x0b\x9e\x5f\xfe\x4f\xe0\xea\x4d\x48\x36\x48\xb2\x84\x36\xcc\x64\xa1\x50\xc6\x3e\xbe\xb6\xb6\xa4\xf9\x07\x62\x2f\x0c\x30\xbc\xf2\xa5\xaa\x64\xe4\x21\x07\x13\xed\xc8\x1b\x7d\x2b\xcf\x49\x6e\x02\x06\xdf\xf7\x56\x2d\x88\x66\x4a\x47\xb6\xb3\xba\xf2\x24\x18\x53\xe8\x61\x83\xbd\x2e\x26\x72\x92\xc4\x6c\x31\x05\x5a\x0c\xda\x94\x19\x32\x61\xb6\x5e\x40\x90\x23\x2f\xcb\xe3\xac\xb7\xfa\x22\x1a\x5e\xc1\xb0\xe5\x2a\x2a\x7c\x0f"
func precacheManifestCaac81df9246236300f3d21849f8638dJsBrBytes() ([]byte, error) {
func precacheManifest67d0c066b9508167ced2c43584d0c5d5JsBrBytes() ([]byte, error) {
return bindataRead(
_precacheManifestCaac81df9246236300f3d21849f8638dJsBr,
"precache-manifest.caac81df9246236300f3d21849f8638d.js.br",
_precacheManifest67d0c066b9508167ced2c43584d0c5d5JsBr,
"precache-manifest.67d0c066b9508167ced2c43584d0c5d5.js.br",
)
}
func precacheManifestCaac81df9246236300f3d21849f8638dJsBr() (*asset, error) {
bytes, err := precacheManifestCaac81df9246236300f3d21849f8638dJsBrBytes()
func precacheManifest67d0c066b9508167ced2c43584d0c5d5JsBr() (*asset, error) {
bytes, err := precacheManifest67d0c066b9508167ced2c43584d0c5d5JsBrBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "precache-manifest.caac81df9246236300f3d21849f8638d.js.br", size: 428, mode: os.FileMode(436), modTime: time.Unix(1541499149, 0)}
info := bindataFileInfo{name: "precache-manifest.67d0c066b9508167ced2c43584d0c5d5.js.br", size: 441, mode: os.FileMode(436), modTime: time.Unix(1541549704, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _runtime71d51395JsBr = "\x1b\xe3\x08\x00\x1c\x85\x8d\x33\xb9\x9a\x1f\xfb\x57\x9d\x44\x95\x21\x64\xaa\x9a\xd3\x2c\x6e\xde\xa4\x4f\xe9\xd3\xd4\x09\x9a\x9f\x30\x50\x28\xe3\x9e\x4c\x13\x6c\xaa\x99\x55\xad\x4f\x85\xc0\xc1\x8e\xe9\x90\xc5\x1b\xb8\x28\xd3\x7f\x27\xc8\x79\xef\x73\xd8\x63\x9b\x88\xac\xb4\xbc\x77\x3f\xb5\x49\xc7\xce\x55\xc8\x5a\x7d\x49\x0a\xa1\x4f\x97\x01\xa2\x02\x26\x89\xc6\x00\x3b\xd6\x53\x76\x6f\x6e\xfe\x7e\xfc\xfc\x45\xfd\x48\x1d\x0f\x01\xe1\xb2\x48\xcf\x6c\x61\xdc\x64\x8a\x85\xba\x13\x06\x2c\xe2\xdc\xe8\x34\xb2\xd0\xeb\xa0\xbc\x91\x46\x3b\x39\x3c\xb8\xa9\xf2\xa4\xc7\xe7\xd8\xd6\x0c\xa4\x9f\x89\x6d\x1a\xde\x89\xfb\x36\x38\xba\x8d\x5a\x7f\xd8\x19\x2a\x20\xbc\xd8\x3e\xa5\xaa\xd1\x40\xb1\xef\xd8\x1f\x14\xa8\xe7\xb9\x1a\x83\xfd\xe3\xf1\xc7\xd5\x1f\x1f\xd6\x3c\xd0\xfc\x03\x26\x74\xd4\x6a\xda\x7d\x48\xba\x0f\x70\x19\x75\xac\x36\x06\x84\x95\xa3\xe5\xc7\x00\x70\x14\x2d\xd6\x3b\x2a\xa5\x60\xa3\xb0\x51\x96\xec\xd7\x5d\x19\x02\x86\x2d\xa9\xf3\x9a\xb0\xd5\x48\x25\x54\x03\xeb\xe4\xbb\x07\xd3\x28\xbe\x13\xca\x8e\x41\x57\xd9\x27\xab\x05\xaf\x83\x36\xc6\x40\xf7\x76\x51\x74\x1e\x51\x57\x7a\x18\x5d\x46\xad\xe6\x2a\x07\xc8\xcf\x25\x9b\x37\x52\xff\xf5\xe7\xd9\xb0\x7b\x36\x50\x65\x66\x7e\x52\xf4\x3a\x80\x14\x3b\xd2\x34\xfe\xed\x9a\x3b\x87\x66\x6d\x35\x99\xc6\x4e\x09\x2d\xad\x93\x86\xd9\xc6\xbc\x63\x60\x42\x28\x1b\x0f\x35\x1d\xf2\x52\x7f\x48\xd3\x1a\xd8\x5b\x39\x20\x41\x47\x9b\x7b\xc6\x92\x2a\xb7\xb2\x8d\xe9\xf7\x30\x58\x0e\x0c\x6b\xd9\x35\x4e\xd5\x5f\xc8\x77\xae\x72\x1d\x68\xef\x35\xe8\xf1\x99\xa1\xd1\x75\x84\x6d\x4c\xff\x20\x50\x28\x0f\x7c\x77\x82\xe2\xe8\x87\x9d\x8c\x70\xd2\x8b\x7e\x15\x3e\xff\x79\xaa\xd0\x9e\x71\x6c\x07\x1d\x0b\xab\x40\x8f\x15\x67\x47\x22\x98\xa0\x1c\x87\x1a\x93\xac\xb0\x9a\x42\x22\x86\x18\x88\x0a\x1c\x77\x4a\xbe\x3e\x06\x5c\x36\x16\x3f\xd5\xa2\x94\xe2\xe1\xf1\x1f\x5f\x7e\xfd\x54\x3b\xdc\xa7\xb9\x3f\x57\xcf\x61\x14\xd2\xe7\x00\x56\x85\xa0\x00\x5c\xff\xfd\xd9\x34\xc2\xca\x3f\x68\xbe\x4d\x95\xc9\xe6\xde\x75\x6c\xb7\x33\xa6\xe2\x34\x2d\xe7\x8d\x0e\x1f\xd7\x53\xb9\x39\x3f\x2d\xbc\x68\x74\xf0\xac\xa5\xe2\x93\xfd\xc3\x37\x72\x19\x77\x74\xf6\x72\xa5\xeb\x79\x25\x57\x71\x87\x17\xc7\xe7\x4f\xfa\x72\x40\xae\x8b\xf7\xf7\x9f\x56\xb5\xe7\x22\x85\x63\xf3\x54\xfc\xf3\xc7\xf2\x9c\x29\x98\xcd\x13\x38\xf1\xf4\xed\x24\xa3\x4c\xc1\x00\x7b\x1c\x9c\xa3\x75\x7b\x4e\xd8\x71\x6a\x59\x8b\x8e\x6a\x45\x65\xc4\xa3\xb5\xe8\xe1\x01\x0f\x93\xc2\x5d\x06\xcf\x58\x5a\x65\x29\x98\xb4\xf8\xdd\x91\x66\x4c\x09\xac\x12\xd1\x3a\x9b\x0d\x46\x9e\xa1\x4b\x2f\x75\x93\xb7\xbf\x3e\x7f\xd8\xf9\x29\x9f\xa7\x5e\x0b\x3e\xc5\x4f\x9f\x6d\x5d\xf3\x79\xaa\xed\x45\x7e\xb5\xa1\x20\xac\x89\x0e\x39\xcd\xd1\xec\x2e\x25\xa3\xb7\x61\x86\x74\x13\x38\x5c\x58\x56\x33\x95\xd9\xbc\x0b\xd2\x6a\x97\xb4\xc9\xcb\x35\xea\x55\x2c\x14\xf1\xcf\x9a\x24\x92\xed\x70\x3e\x5f\xc2\x68\xfb\x93\x0c\x96\x9e\x44\xa8\xf0\x5c\xe9\x91\x73\x37\x90\x34\xff\x92\xd2\x5c\xc4\x9d\xbb\x3a\x42\x29\x41\xa3\x86\x3e\x8a\x15\xd8\x6e\xe1\x8e\xa7\x8e\x24\xc8\x31\xd2\xc2\xa9\x77\x77\x01\x00\x5e\xdb\xca\x3e\x45\xa4\x01\xea\x8f\x77\xac\x39\x94\x8a\xdd\x4a\x87\xe3\xf9\x2d\xcd\x61\xf5\xbf\xf5\x64\x7e\xad\xd7\xfc\x5e\xb5\x3a\x09\x7d\xc4\x99\x20\xb0\xd1\x4b\xc6\xe2\x48\x09\x32\xe8\xa0\xfb\xfb\xf9\x07\x69\x72\x52\x2c\xfb\x22\x27\x86\x26\x50\x85\xad\xba\x12\xa0\xdd\x08\x05\x78\x5d\xbf\x63\x07\x9e\x27\xcf\x29\x74\x79\xd0\x7c\x56\x7a\x95\x6a\xf5\x67\x8e\xb7\x96\x9a\x50\x78\x2e\x17\x50\x84\xb5\x34\x17\x97\x60\x79\x2d\x73\x58\x88\x4f\x22\x79\xc0\x61\x42\xab\x73\x4d\xda\x34\xc1\x83\x50\xfc\x21\x03\xe6\xad\x3c\xe4\x44\x48\x5d\xbf\x50\xbc\xf3\xd5\x82\xce\xd8\x1b\x0b\xac\x32\x87\x7b\x85\xbd\x17\x39\x12\x92\x0c\x3b\x2d\xe6\x10\x3a\x91\xc6\xde\x25\xd5\x18\xce\xc6\xe5\xdf\x2c\x1b\x41\x0a\xd5\x41\xb6\x5b\x40\x7a\x2c\x04\x88\x26\x13\xc7\x1c\x4a\x3a\xfd\xdc\x8b\x4a\x2f\xaf\xdd\x44\x85\xdd\xdc\x79\x2d\x4e\x14\x16\x0f\xee\x94\x05\x11\x00\x92\xd6\xa0\x74\xac\x83\x23\xa5\x3f\xf3\xd3\x41\x29\xb8\x14\xfb\xa2\x5f\xeb\x21\x2b\xd7\x51\xc4\x60\xcf\x6d\x57\xce\x88\xaa\x3e\x02\x59\x3c\xa2\x2e\x3c\xf3\xf3\x80\xdf\x53\xa3\x1f\xf4\xa0\x3d\xff\xbb\x61\x1f\xc0\x56\x7b\x94\x44\x96\x6f\xb5\xc7\x67\x04"
var _runtime94e2a260JsBr = "\x1b\xe4\x08\x00\x1c\x85\x71\xdb\xd2\xb2\xdb\xbf\x94\x2a\xa1\x70\x04\x3d\xb5\x74\x9a\xcd\x76\x9b\x9d\xef\x99\xa6\xf4\x43\x1c\x69\xa9\x5c\x6c\x11\xe8\x67\x9d\xa5\xa6\x56\xb5\x16\x0b\x62\x07\x1c\xaf\x43\xe6\x6a\xe0\xa2\xcc\x1d\x41\xe7\x93\xe3\xa7\x78\x62\x9b\x88\xac\xb4\xf4\xff\xdd\x4f\x6d\xb2\xb1\x73\x15\xb2\x56\xdf\x24\x85\x0f\xf8\x32\x06\x96\x68\x0c\xb0\x63\x3d\x65\x77\xe6\xe6\xef\xc7\xcf\x5f\xd4\x8f\xd4\xf1\x10\x10\x2e\x8b\xf4\xcc\x49\x8c\x6b\x8d\x31\x53\xb7\x98\x19\x66\x71\x6e\x54\x0a\x51\xd6\x72\x27\xbd\xb1\xc2\x2b\x5b\x3d\xd8\x95\xf9\xd0\xed\x39\xfa\x12\x81\xf4\x33\xd1\xcb\xf0\x2a\x6c\xbd\xb3\x35\xe9\x39\xff\xb0\x33\x2a\x10\x5e\x62\x9f\x02\xe5\x68\x20\x4f\x37\xe4\x0f\x11\xd4\x73\x5d\x8d\x9e\xfe\x71\xff\xe3\xec\x47\x87\x35\x0f\x9a\x7f\xc0\x88\x8a\x9c\x8d\x9b\x76\x51\xd3\x0e\x2e\xa3\xee\xd9\xca\x0c\x61\xe5\x70\xfa\x31\x00\x1c\xb9\x93\xf5\x8e\x19\x52\x88\x51\xd8\x28\x0c\xd6\xeb\xae\xf4\x02\xdd\xa6\xa1\xf3\x1a\xb7\xd5\x48\xa6\x29\x87\x2d\x83\xef\x1e\x2b\xa3\xf8\x8e\x2b\x9a\x75\xaa\xd2\x36\x51\x25\x70\xe9\xb4\x29\x08\xba\xb7\x93\xbc\x61\x8f\xbc\xb8\x5e\x5b\xa3\x9e\xb3\xa9\xd2\x0e\xc6\xe7\x92\x13\x37\x52\xff\xf5\xc7\xc9\x6c\xf3\x2c\x20\x4b\x4c\xfc\x21\x6f\xb9\x03\x43\xec\x90\x87\xf1\x6f\xd7\x58\xd8\x34\x72\xcd\x83\x61\xec\xb8\xd0\x86\x74\xd2\x30\x59\x99\x36\xeb\x98\x10\x65\xdb\x43\xcd\x0a\x79\xb9\x3e\xa4\x21\xd5\x58\x6b\xda\x21\x41\x73\x1d\xcb\x88\x25\x67\x69\x65\xc7\xa7\xdf\x43\x67\xd9\x17\xac\x8d\xaa\x71\xbc\xfe\xc2\x78\x75\x96\xeb\xa0\xbd\xd7\x4c\xb7\x67\xba\x5a\xe3\x1e\xb2\x32\xfd\x7d\x47\xa1\xc8\xf1\xdd\x09\xf2\xbc\xad\x76\x46\x84\x93\x35\xeb\x57\xac\xd3\x9f\xa7\x0a\x3d\x06\x02\x9a\x8c\x8a\x99\x95\xaf\x5b\xc5\xd9\x3e\x10\x4c\x48\x8a\x43\x35\x41\x54\x58\x4d\x21\x11\x23\x06\xc2\x04\xc7\x9d\x92\xaf\x8f\x01\x97\x8d\xc9\x4f\xb5\x28\x20\x79\x78\xfc\xc7\x97\x5f\x3f\x55\x76\xb7\x29\xae\x8f\xd9\x63\x18\x05\xf0\x39\x80\xcd\x44\x90\x0d\xae\xff\xfe\x68\x1a\x65\xe5\x1f\x14\xef\xa5\x54\x6c\x2c\x8d\xfb\x7a\x3d\xa1\x24\x87\x32\x6f\x2a\xec\xde\xcf\x87\x74\xdc\x1c\x26\x6e\x2b\xec\x3c\x72\x29\xef\x60\x7b\xf7\x8d\xed\x22\xf6\x8e\x9e\xf6\x3c\x1f\x67\xb6\x8f\xd8\x3d\xd9\x3f\x7e\xe0\xa7\x1d\x76\xc8\xdb\xde\x7e\x58\x55\x1c\x13\x25\x8e\x75\x25\xf9\xe7\x8f\xe5\x39\x63\x30\x9a\x67\xa6\xc9\xd3\xb7\x16\x8d\x32\x85\x00\xec\x71\x70\x4e\x56\xed\x39\x61\xc7\x99\xf3\x5a\x75\x54\x83\x65\x06\x3c\x1a\x92\xae\x57\x7b\x98\x14\xfa\x34\x78\xa6\x54\x2b\x0b\xc0\xa0\xa5\xef\x8e\x34\x63\x4a\xb0\x4a\x48\xe9\x6c\x31\x18\x79\x36\x5c\x7a\xa9\x0d\xbd\xfc\xfa\xfc\xbe\xf1\x53\x34\x95\x5e\x0b\x3e\xfd\x9f\x3e\x1b\x94\xcf\xa5\xba\x17\xfb\xd5\x88\x84\x90\x26\x9a\xa5\x14\x47\xb3\xbb\x14\xf4\x56\xba\x09\x86\x9b\xe0\x70\x61\x61\x1e\x43\x99\xcd\xab\x20\xad\x62\x0e\x1b\xbc\x74\x85\x5e\xa5\x44\x11\xff\xac\xd2\xc0\x60\xd9\x9d\x36\x53\x18\x6d\x7f\x10\xc1\xd2\xa5\x08\x55\x9e\x6b\x78\xe4\xdc\x6d\x18\x14\xff\x12\x53\x9c\xc4\x9d\x3b\x3b\x42\x01\x8d\x46\x0d\xbc\x15\x8b\xb1\x5e\xc3\x9d\x4c\x1d\x31\x90\x13\xa4\x39\x83\xef\xee\x02\x00\x5e\x51\xd3\x36\x45\xe4\x0e\xf5\xc7\x3b\xd6\x1c\x48\xc5\x7a\xa1\xc3\xf1\xf2\x96\xe6\x28\xfb\xdf\xf1\x64\x7e\xad\x6b\x7c\xcf\x5a\x9d\x84\x3e\xe4\x48\x10\x54\xe1\x25\x63\x71\xa4\x01\x32\x68\x86\xdb\xdb\xe9\x07\x69\x6c\x52\x4a\xdb\x22\x47\xbb\x45\xa0\x0a\x4a\x76\x25\xa0\xdd\x08\x06\x78\xc8\x86\x1d\x3c\xcf\xd8\x50\x58\xe9\x41\xf3\x39\xd2\xab\x80\xb3\x3f\x73\xbc\xb5\xf8\x84\xca\x73\xa5\x80\x2a\xac\x0d\x73\x71\x03\x2c\xaf\x25\x6e\xe6\xe2\x33\x8f\x1d\x70\x98\xd0\xea\x52\x93\x46\x1e\xe0\x4a\x28\xf9\x90\x01\x33\x17\x2e\x72\x22\x52\xd7\x2f\x18\xaf\x3e\x9b\x53\x19\x7b\x63\x81\xd5\x18\xc3\xbd\x22\xde\x73\x15\x09\xc9\x70\x3b\x2d\xa6\x10\x3a\x91\xc6\xee\x29\xd5\x18\xce\xb6\xcb\xbf\xd9\xa8\x04\x71\x54\x87\x6c\xb7\x18\xe1\x3e\xd1\x40\x6b\x32\xba\xcd\xa1\xa4\xd3\xcf\xbd\xc4\xf4\xf2\x86\x2e\xd8\x4a\xfc\xe6\x4e\x6b\x75\xaa\xb0\x7a\x74\xa7\x22\x8a\x80\x48\x16\x47\xa5\x46\x1d\x1e\x29\xf8\x99\x1e\x0e\x4b\xe1\x62\xec\x8b\x7e\xad\x47\x5a\xae\x24\x09\xd1\x5e\x1a\xaf\x08\x11\x55\x9d\x64\x44\xe1\x90\xba\xc8\xd4\x2f\x23\x7e\x4f\x8e\x7a\xd8\x83\xd7\xac\xef\x46\xb5\x23\x5b\xc5\x5d\x14\x69\xbe\xc1\x6e\xcf\x08"
func runtime71d51395JsBrBytes() ([]byte, error) {
func runtime94e2a260JsBrBytes() ([]byte, error) {
return bindataRead(
_runtime71d51395JsBr,
"runtime.71d51395.js.br",
_runtime94e2a260JsBr,
"runtime.94e2a260.js.br",
)
}
func runtime71d51395JsBr() (*asset, error) {
bytes, err := runtime71d51395JsBrBytes()
func runtime94e2a260JsBr() (*asset, error) {
bytes, err := runtime94e2a260JsBrBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "runtime.71d51395.js.br", size: 1005, mode: os.FileMode(436), modTime: time.Unix(1541499149, 0)}
info := bindataFileInfo{name: "runtime.94e2a260.js.br", size: 1004, mode: os.FileMode(436), modTime: time.Unix(1541549704, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _swJsBr = "\x1b\x2d\x01\x00\x1c\x07\x8e\xeb\x6c\xd2\x73\x70\x64\xec\xb5\xc9\x6d\xa5\xbe\x88\xcc\xac\x71\x9d\x48\x12\xd1\x7f\x2f\x90\xbe\x52\x78\x81\xc8\x5b\xc8\x95\x7f\xc7\x66\x14\xeb\x02\x21\x9b\x66\x53\x85\xa4\x65\x21\x35\xba\xcd\xc7\xab\xb7\x46\xd1\x64\x75\x09\x85\xe8\x9c\x48\x79\xca\x75\x70\x5c\x2d\xd3\xb3\x1f\x4d\xf0\x0d\xac\xcb\xb2\xd6\xa4\xe9\x0c\xe5\x92\x32\xc9\x30\xee\x58\x43\x89\xe6\xa6\xd3\x92\xe9\x06\x4e\x37\xf0\x80\xaf\x9c\xc2\x36\x41\x21\xb4\xf2\x18\xef\xac\x03\x2d\xd5\xfe\xf1\xeb\x66\x43\xb2\x98\x10\x83\x12\x32\xb8\xdc\xef\xe5\xe4\xac\x32\x1a\xa1\xd2\x28\x51\x39\x83\x05\xe3\xa2\xd4\xc4\xcf\x6d\x73\x20\x60\x9b\xef\xf6\x36\xd8\x9a\x44\xcf\x89\x93\x2b\xcc\x73\x2c\x87\x14\x07\xcf\x1f\x2f\x62\x5c\xd1\xb5\x04\x77\x69\xf4\xd6\x7b\xdc\x7a\x2b\x0e\x1d\x94\xba\x3b"
var _swJsBr = "\x1b\x2e\x01\x00\x1c\x07\xce\x19\xcb\x2d\xe6\xbb\x24\x74\x71\x9c\xd7\x47\xa3\xdb\x52\x7f\x14\x05\x6f\xac\x13\x49\xa2\xda\x20\x2e\x37\x7d\x4b\xe1\x05\x22\x6f\x21\x57\x9e\x63\x33\x8a\x75\x81\x28\x9b\x66\x53\x85\xa4\x65\x21\x35\xba\xcd\xc7\xab\xb7\x46\xd1\x64\x75\x09\x85\x68\x9d\x48\x79\xca\x75\x70\xd9\x4a\xaa\x67\x12\x4e\xf0\x0d\xd5\x57\xf0\x9c\xeb\x7a\x66\x69\xdc\x14\xba\x91\x97\x85\xcc\x55\x45\x33\xd5\x82\xe7\x5a\xa1\xd1\x6e\x07\x18\xf8\xcb\x29\x74\x23\x55\x42\x4d\x97\x76\x4f\x3b\xd0\x92\xcd\x0f\xc9\x8b\x89\xe9\x62\x62\x4a\x7a\x0a\x9c\xf7\x7b\x39\x39\xac\x8c\x06\x2a\x35\x6a\x54\x4e\x61\xde\xb8\x29\x4d\xe6\xe7\xb6\x39\x10\xd0\xcd\x75\x5b\xe9\x4c\x45\xa6\xe7\xc4\xcb\x85\xc6\x31\x96\x5c\x8a\x03\xf6\xe3\x49\x8c\xcb\xdb\x86\xe8\x2e\x13\xbe\xf5\x6e\xa7\xda\xe6\xa7\x90\x85\xbe\x3b"
func swJsBrBytes() ([]byte, error) {
return bindataRead(
@ -536,7 +536,7 @@ func swJsBr() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "sw.js.br", size: 192, mode: os.FileMode(436), modTime: time.Unix(1541499149, 0)}
info := bindataFileInfo{name: "sw.js.br", size: 196, mode: os.FileMode(436), modTime: time.Unix(1541549704, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@ -556,7 +556,7 @@ func vendorsMain09d549afJsBr() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "vendors~main.09d549af.js.br", size: 67529, mode: os.FileMode(436), modTime: time.Unix(1541499149, 0)}
info := bindataFileInfo{name: "vendors~main.09d549af.js.br", size: 67529, mode: os.FileMode(436), modTime: time.Unix(1541549704, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@ -633,8 +633,8 @@ var _bindata = map[string]func() (*asset, error){
"font/fontello.woff2": fontFontelloWoff2,
"main.34b5e0ff.js.br": main34b5e0ffJsBr,
"main.b871b061.css.br": mainB871b061CssBr,
"precache-manifest.caac81df9246236300f3d21849f8638d.js.br": precacheManifestCaac81df9246236300f3d21849f8638dJsBr,
"runtime.71d51395.js.br": runtime71d51395JsBr,
"precache-manifest.67d0c066b9508167ced2c43584d0c5d5.js.br": precacheManifest67d0c066b9508167ced2c43584d0c5d5JsBr,
"runtime.94e2a260.js.br": runtime94e2a260JsBr,
"sw.js.br": swJsBr,
"vendors~main.09d549af.js.br": vendorsMain09d549afJsBr,
}
@ -701,8 +701,8 @@ var _bintree = &bintree{nil, map[string]*bintree{
}},
"main.34b5e0ff.js.br": &bintree{main34b5e0ffJsBr, map[string]*bintree{}},
"main.b871b061.css.br": &bintree{mainB871b061CssBr, map[string]*bintree{}},
"precache-manifest.caac81df9246236300f3d21849f8638d.js.br": &bintree{precacheManifestCaac81df9246236300f3d21849f8638dJsBr, map[string]*bintree{}},
"runtime.71d51395.js.br": &bintree{runtime71d51395JsBr, map[string]*bintree{}},
"precache-manifest.67d0c066b9508167ced2c43584d0c5d5.js.br": &bintree{precacheManifest67d0c066b9508167ced2c43584d0c5d5JsBr, map[string]*bintree{}},
"runtime.94e2a260.js.br": &bintree{runtime94e2a260JsBr, map[string]*bintree{}},
"sw.js.br": &bintree{swJsBr, map[string]*bintree{}},
"vendors~main.09d549af.js.br": &bintree{vendorsMain09d549afJsBr, map[string]*bintree{}},
}}

View File

@ -14,7 +14,8 @@ module.exports = {
},
output: {
filename: '[name].[chunkhash:8].js',
chunkFilename: '[name].[chunkhash:8].js'
chunkFilename: '[name].[chunkhash:8].js',
publicPath: '/'
},
resolve: {
alias: {

View File

@ -19,7 +19,7 @@
<link rel="preload" href="/font/RobotoMono-Bold.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<% if cssPath != "" { %>
<link href="/<%== cssPath %>" rel="stylesheet">
<link href="<%== cssPath %>" rel="stylesheet">
<% } %>
<link rel="icon" href="data:;base64,=">
@ -35,7 +35,7 @@
<% } %>
<% for _, script := range scripts { %>
<script src="/<%== script %>"></script>
<script src="<%== script %>"></script>
<% } %>
</body>

View File

@ -10,7 +10,7 @@ import (
func IndexTemplate(w io.Writer, data *indexData, cssPath string, inlineScript string, scripts []string) error {
io.WriteString(w, "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><meta name=\"theme-color\" content=\"#222\"><title>Dispatch</title><link rel=\"preload\" href=\"/font/fontello.woff2?48901973\" as=\"font\" type=\"font/woff2\" crossorigin=\"anonymous\"><link rel=\"preload\" href=\"/font/RobotoMono-Regular.woff2\" as=\"font\" type=\"font/woff2\" crossorigin=\"anonymous\"><link rel=\"preload\" href=\"/font/Montserrat-Regular.woff2\" as=\"font\" type=\"font/woff2\" crossorigin=\"anonymous\"><link rel=\"preload\" href=\"/font/Montserrat-Bold.woff2\" as=\"font\" type=\"font/woff2\" crossorigin=\"anonymous\"><link rel=\"preload\" href=\"/font/RobotoMono-Bold.woff2\" as=\"font\" type=\"font/woff2\" crossorigin=\"anonymous\">")
if cssPath != "" {
io.WriteString(w, "<link href=\"/")
io.WriteString(w, "<link href=\"")
io.WriteString(w, cssPath )
io.WriteString(w, "\" rel=\"stylesheet\">")
}
@ -23,7 +23,7 @@ io.WriteString(w, "<script id=\"env\" type=\"application/json\">")
io.WriteString(w, "</script>")
}
for _, script := range scripts {
io.WriteString(w, "<script src=\"/")
io.WriteString(w, "<script src=\"")
io.WriteString(w, script )
io.WriteString(w, "\"></script>")
}

View File

@ -41,7 +41,7 @@ type h2PushAsset struct {
func newH2PushAsset(name string) h2PushAsset {
return h2PushAsset{
path: "/" + name,
path: name,
hash: strings.Split(name, ".")[1],
}
}
@ -121,19 +121,20 @@ func (d *Dispatch) initFileServer() {
ignoreAssets := []string{
manifest["runtime.js"],
manifest["boot.js"],
"sw.js",
manifest["sw.js"],
}
outer:
for _, assetPath := range manifest {
for _, ignored := range ignoreAssets {
if assetPath == ignored {
continue
continue outer
}
}
file := &File{
Path: assetPath,
Asset: assetPath + ".br",
Asset: strings.TrimLeft(assetPath, "/") + ".br",
ContentType: contentTypes[filepath.Ext(assetPath)],
CacheControl: longCacheControl,
Compressed: true,
@ -211,7 +212,7 @@ func decompressAsset(data []byte) []byte {
}
func decompressedAsset(name string) []byte {
asset, err := assets.Asset(name + ".br")
asset, err := assets.Asset(strings.TrimLeft(name, "/") + ".br")
if err != nil {
log.Fatal(err)
}