update badges/shields in README + small update in config
This commit is contained in:
parent
b629c3785a
commit
fd280d6371
2 changed files with 21 additions and 22 deletions
16
README.md
16
README.md
|
@ -21,13 +21,15 @@
|
|||
</p>
|
||||
|
||||
<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="https://github.com/fancy-flashcard/ffc">
|
||||
<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 href="https://github.com/fancy-flashcard/ffc/blob/master/LICENSE">
|
||||
<img src="https://img.shields.io/badge/License-MIT-green" alt="MIT License">
|
||||
</a>
|
||||
<a href="#"
|
||||
><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>
|
||||
<a href="https://github.com/fancy-flashcard/ffc/actions?query=workflow%3A%22Build+and+Deploy%22"
|
||||
><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 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>
|
||||
|
||||
|
|
|
@ -6,22 +6,19 @@ module.exports = {
|
|||
msTileColor: "#3F51B5",
|
||||
manifestOptions: {
|
||||
name: "Fancy Flashcard",
|
||||
short_name: "FFC",
|
||||
short_name: "Fancy Flashcard",
|
||||
},
|
||||
},
|
||||
chainWebpack: config => {
|
||||
config
|
||||
.plugin('html')
|
||||
.tap(args => {
|
||||
args[0].title = 'Fancy Flashcard'
|
||||
return args
|
||||
})
|
||||
config
|
||||
.plugin('define')
|
||||
.tap(args => {
|
||||
let v = JSON.stringify(require('./package.json').version)
|
||||
args[0]['process.env']['VERSION'] = v
|
||||
return args
|
||||
})
|
||||
chainWebpack: (config) => {
|
||||
config.plugin("html").tap((args) => {
|
||||
args[0].title = "Fancy Flashcard";
|
||||
return args;
|
||||
});
|
||||
config.plugin("define").tap((args) => {
|
||||
args[0]["process.env"]["VERSION"] = JSON.stringify(
|
||||
require("./package.json").version
|
||||
);
|
||||
return args;
|
||||
});
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue