update badges/shields in README + small update in config

This commit is contained in:
Niko Lockenvitz 2020-07-21 09:54:54 +02:00
parent b629c3785a
commit fd280d6371
No known key found for this signature in database
GPG key ID: 9403BD1956FFF190
2 changed files with 21 additions and 22 deletions

View file

@ -21,13 +21,15 @@
</p> </p>
<p align="center"> <p align="center">
<img src="https://img.shields.io/badge/dynamic/json?color=informational&label=Version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Ffancy-flashcard%2Fffc%2Fmaster%2Fpackage.json" alt="Version Number"> <a href="#"
<a href="https://github.com/fancy-flashcard/ffc"> ><img src="https://img.shields.io/badge/dynamic/json?color=informational&label=Version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Ffancy-flashcard%2Fffc%2Fmaster%2Fpackage.json" alt="Version Number"
<img src="https://img.shields.io/github/workflow/status/fancy-flashcard/ffc/Build%20and%20Deploy?label=Build%20and%20Deploy&logo=github" alt="Build and Deploy status"> ></a>
</a> <a href="https://github.com/fancy-flashcard/ffc/actions?query=workflow%3A%22Build+and+Deploy%22"
<a href="https://github.com/fancy-flashcard/ffc/blob/master/LICENSE"> ><img src="https://img.shields.io/github/workflow/status/fancy-flashcard/ffc/Build%20and%20Deploy?label=Build%20and%20Deploy&logo=github" alt="Build and Deploy status"
<img src="https://img.shields.io/badge/License-MIT-green" alt="MIT License"> ></a>
</a> <a href="https://github.com/fancy-flashcard/ffc/blob/master/LICENSE"
><img src="https://img.shields.io/badge/License-MIT-success" alt="MIT License"
></a>
</p> </p>
</p> </p>

View file

@ -6,22 +6,19 @@ module.exports = {
msTileColor: "#3F51B5", msTileColor: "#3F51B5",
manifestOptions: { manifestOptions: {
name: "Fancy Flashcard", name: "Fancy Flashcard",
short_name: "FFC", short_name: "Fancy Flashcard",
}, },
}, },
chainWebpack: config => { chainWebpack: (config) => {
config config.plugin("html").tap((args) => {
.plugin('html') args[0].title = "Fancy Flashcard";
.tap(args => { return args;
args[0].title = 'Fancy Flashcard' });
return args config.plugin("define").tap((args) => {
}) args[0]["process.env"]["VERSION"] = JSON.stringify(
config require("./package.json").version
.plugin('define') );
.tap(args => { return args;
let v = JSON.stringify(require('./package.json').version) });
args[0]['process.env']['VERSION'] = v
return args
})
}, },
}; };