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>
|
||||||
|
|
||||||
<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>
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue