Misc updates and better logging.
This commit is contained in:
@@ -41,7 +41,7 @@ let webpackConfig = merge(commonConfig(true), {
|
||||
|
||||
webpackConfig = merge(webpackConfig, {
|
||||
plugins: [
|
||||
new HtmlPlugin({
|
||||
new HtmlWebpackPlugin({
|
||||
template: "src/templates/Index.html"
|
||||
})
|
||||
]
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
"url-loader": "^4.1.1",
|
||||
"vue-loader": "~15.9.5",
|
||||
"vue-style-loader": "~4.1",
|
||||
"vue-template-compiler": "^2.6.12",
|
||||
"webpack": "~5.6.0",
|
||||
"webpack-bundle-analyzer": "^3.6.0",
|
||||
"webpack-cli": "~4.2.0",
|
||||
|
||||
@@ -16,6 +16,7 @@ const mongoose = require("mongoose");
|
||||
const MongoStore = require("connect-mongo")(session);
|
||||
|
||||
// mongoose / database
|
||||
console.log("Trying to connect with mongodb..");
|
||||
mongoose.promise = global.Promise;
|
||||
mongoose.connect("mongodb://localhost/vinlottis", {
|
||||
useCreateIndex: true,
|
||||
@@ -28,7 +29,7 @@ mongoose.connect("mongodb://localhost/vinlottis", {
|
||||
console.error("ERROR! Mongodb required to run.");
|
||||
process.exit(1);
|
||||
})
|
||||
mongoose.set("debug", process.env.NODE_ENV === "development");
|
||||
mongoose.set("debug", false);
|
||||
|
||||
// middleware
|
||||
const setupCORS = require(path.join(__dirname, "/api/middleware/setupCORS"));
|
||||
|
||||
15
yarn.lock
15
yarn.lock
@@ -2356,6 +2356,11 @@ dashdash@^1.12.0:
|
||||
dependencies:
|
||||
assert-plus "^1.0.0"
|
||||
|
||||
de-indent@^1.0.2:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/de-indent/-/de-indent-1.0.2.tgz#b2038e846dc33baa5796128d0804b455b8c1e21d"
|
||||
integrity sha1-sgOOhG3DO6pXlhKNCAS0VbjB4h0=
|
||||
|
||||
debug@2.6.9, debug@^2.2.0, debug@^2.3.3:
|
||||
version "2.6.9"
|
||||
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
|
||||
@@ -3416,7 +3421,7 @@ hash-sum@^1.0.2:
|
||||
resolved "https://registry.yarnpkg.com/hash-sum/-/hash-sum-1.0.2.tgz#33b40777754c6432573c120cc3808bbd10d47f04"
|
||||
integrity sha1-M7QHd3VMZDJXPBIMw4CLvRDUfwQ=
|
||||
|
||||
he@^1.2.0:
|
||||
he@^1.1.0, he@^1.2.0:
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
|
||||
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
|
||||
@@ -7035,6 +7040,14 @@ vue-style-loader@^4.1.0, vue-style-loader@~4.1:
|
||||
hash-sum "^1.0.2"
|
||||
loader-utils "^1.0.2"
|
||||
|
||||
vue-template-compiler@^2.6.12:
|
||||
version "2.6.12"
|
||||
resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.6.12.tgz#947ed7196744c8a5285ebe1233fe960437fcc57e"
|
||||
integrity sha512-OzzZ52zS41YUbkCBfdXShQTe69j1gQDZ9HIX8miuC9C3rBCk9wIRjLiZZLrmX9V+Ftq/YEyv1JaVr5Y/hNtByg==
|
||||
dependencies:
|
||||
de-indent "^1.0.2"
|
||||
he "^1.1.0"
|
||||
|
||||
vue-template-es2015-compiler@^1.9.0:
|
||||
version "1.9.1"
|
||||
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz#1ee3bc9a16ecbf5118be334bb15f9c46f82f5825"
|
||||
|
||||
Reference in New Issue
Block a user