Commit a83f65a9 authored by Daniel Kullmann's avatar Daniel Kullmann

Bundles js and css files together.

parent 246774e5
Pipeline #171236277 passed with stage
in 40 seconds
.PHONY: coronavirus-data.csv
build: public generate-json-files build-no-data
build: public generate-json-files build-no-data bundle
gzip -c -9 public/data.json > public/data.json.gz
build-no-data: public
cp -r lib public/
cp index.html public/index.html
bundle: public
cat lib/*.js > public/app.js
#css-html-js-minify public/app.js
#mv public/app.min.js public/app.js
gzip -c -9 public/app.js > public/app.js.gz
cat lib/*.css > public/app.css
gzip -c -9 public/app.css > public/app.css.gz
public:
mkdir -p public
......
......@@ -8,8 +8,7 @@
<title>Some Plots of Current Coronavirus Data</title>
<link rel="stylesheet" href="./lib/bootstrap.min.css"/>
<link rel="stylesheet" href="./lib/Chart.css"/>
<link rel="stylesheet" href="./app.css"/>
<style>
html, body {
......@@ -27,11 +26,7 @@
}
</style>
<script src="./lib/Chart.bundle.js"></script>
<script src="./lib/hammerjs.js"></script>
<script src="./lib/chartjs-plugin-zoom.js"></script>
<script src="./lib/chartjs-plugin-colorschemes.js"></script>
<script src="./lib/main.js"></script>
<script src="./app.js"></script>
</head>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment