Allow a subset of console.* statements in production #41
3 changed files with 7 additions and 4 deletions
|
@ -8,7 +8,10 @@ module.exports = {
|
|||
extends: ["plugin:vue/essential", "@vue/prettier", "@vue/typescript"],
|
||||
|
||||
rules: {
|
||||
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
|
||||
"no-console":
|
||||
process.env.NODE_ENV === "production"
|
||||
? ["error", { allow: ["info", "warn", "error"] }]
|
||||
: "off",
|
||||
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
|
||||
},
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "mcgvue",
|
||||
"short_name": "mcgvue",
|
||||
"name": "MLPCARDGAME",
|
||||
"short_name": "mcg",
|
||||
"description": "MLP:CCG simulator",
|
||||
"icons": [{
|
||||
"src": "./images/icons/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
|
|
|
@ -34,7 +34,6 @@ export async function loadSets() {
|
|||
if (Database == null) {
|
||||
throw new Error("Database was not initialized, init with 'initDB()'");
|
||||
}
|
||||
console.log(`Processing cards from ${set.Name}`);
|
||||
return await Database.cards.bulkPut(set.Cards);
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue