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