Last active
June 27, 2018 14:40
-
-
Save YSRKEN/c3523c6fc936c82d4fb7d714b6d90359 to your computer and use it in GitHub Desktop.
【入門】AngularでPWAアプリを作ってGithub.ioに投稿するまで ref: https://qiita.com/YSRKEN/items/96226cfb81579830a92b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"build": { | |
"builder": "@angular-devkit/build-angular:browser", | |
"options": { | |
// これを | |
"outputPath": "dist/my-app", | |
// このように修正 | |
"outputPath": "../docs", | |
"baseHref": ".", | |
"index": "src/index.html", | |
"main": "src/main.ts", | |
"polyfills": "src/polyfills.ts", | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imports: [ | |
BrowserModule.withServerTransition({ appId: 'serverApp' }), | |
AppRoutingModule, | |
// これを | |
ServiceWorkerModule.register('/ngsw-worker.js', { enabled: environment.production }), | |
// このように修正 | |
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }), | |
RouterModule, | |
BrowserAnimationsModule, | |
MatButtonModule, | |
MatCheckboxModule | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"background_color": "#fafafa", | |
"display": "standalone", | |
"scope": "/", | |
// これを | |
"start_url": "/", | |
// このように修正 | |
"start_url": "/my-app/", | |
"icons": [ | |
{ | |
"src": "assets/icons/icon-72x72.png", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment