Skip to content

Commit 00b0a71

Browse files
committed
apparently you need to set extract-css to false
ref: angular/angular-cli#8577 (comment)
1 parent efaef78 commit 00b0a71

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ services:
2727
ports:
2828
- "4200:80"
2929
volumes:
30-
- ./frontend/dist/frontend/:/usr/share/nginx/html/:ro
31-
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf:ro
30+
- ./frontend/dist/frontend/:/usr/share/nginx/html/
31+
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
3232
environment:
3333
- NGINX_HOST=ninrod.org
3434
- NGINX_PORT=80

frontend/angular.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"src/assets"
2828
],
2929
"styles": [
30-
"src/styles.scss",
31-
"node_modules/bootstrap/dist/css/bootstrap.min.css"
30+
"node_modules/bootstrap/dist/css/bootstrap.min.css",
31+
"src/styles.scss"
3232
],
3333
"scripts": []
3434
},
@@ -43,19 +43,12 @@
4343
"optimization": true,
4444
"outputHashing": "all",
4545
"sourceMap": true,
46-
"extractCss": true,
46+
"extractCss": false,
4747
"namedChunks": false,
4848
"aot": true,
4949
"extractLicenses": true,
5050
"vendorChunk": false,
51-
"buildOptimizer": true,
52-
"budgets": [
53-
{
54-
"type": "initial",
55-
"maximumWarning": "2mb",
56-
"maximumError": "5mb"
57-
}
58-
]
51+
"buildOptimizer": true
5952
}
6053
}
6154
},

frontend/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<title>Frontend</title>
6-
<base href="/">
6+
<base href=".">
77

88
<meta name="viewport" content="width=device-width, initial-scale=1">
99
<link rel="icon" type="image/x-icon" href="favicon.ico">

0 commit comments

Comments
 (0)