Skip to content

Commit 8520df9

Browse files
Merge pull request #32 from munihac/serve-bootstrap-from-static-webserver
Serve bootstrap from static webserver
2 parents 3f96f45 + 4cdc04a commit 8520df9

25 files changed

+14703
-9042
lines changed
File renamed without changes.
File renamed without changes.

assets/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Static Assets
2+
3+
This project is used to serve the following static assets:
4+
5+
- `styles.css` (compiled from `scss/styles.scss`)
6+
- `custom.css`
7+
- The bootstrap framework, exposed via `bootstrap.min.js`
8+
- The bootstrap-icos, exposed as the full contents of `bootstrap-icons/font/*`
9+
10+
At the moment the assets must be built locally and check-in to the repository.
11+
To do that, run the following commands:
12+
13+
```sh
14+
npm install --no-save
15+
npm run css
16+
```
17+
18+
The `.dist/` folder is generated automatically by the `npm run css` command and must be commited to the repository.
19+
20+
# Ideas for further extension & refinement
21+
22+
- Install the `glyphicons` fonts as an npm package and serve them from the `assets/` project (currently they are vendored-in in `../fonts/`)
23+
- Use `purgecss` to reduce the size of the stylesheets
24+
- Do not check-in the `dist/` folder to the repository.
25+
Instead build it as part of the deployment pipeline.
File renamed without changes.

assets/dist/bootstrap-icons.css

Lines changed: 2078 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)