mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Frontend: Dependency upgrades and config clean-up
This commit is contained in:
@@ -4,13 +4,6 @@ const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||
|
||||
const webpack = require("webpack");
|
||||
|
||||
const PATHS = {
|
||||
app: path.join(__dirname, "src/app.js"),
|
||||
js: path.join(__dirname, "src"),
|
||||
css: path.join(__dirname, "src/css"),
|
||||
build: path.join(__dirname, "../assets/server/static/build"),
|
||||
};
|
||||
|
||||
const isDev = process.env.NODE_ENV !== "production";
|
||||
|
||||
if(isDev) {
|
||||
@@ -19,6 +12,13 @@ if(isDev) {
|
||||
console.log("Building frontend in PRODUCTION mode. Please wait.")
|
||||
}
|
||||
|
||||
const PATHS = {
|
||||
app: path.join(__dirname, "src/app.js"),
|
||||
js: path.join(__dirname, "src"),
|
||||
css: path.join(__dirname, "src/css"),
|
||||
build: path.join(__dirname, "../assets/server/static/build"),
|
||||
};
|
||||
|
||||
const config = {
|
||||
mode: isDev ? "development" : "production",
|
||||
devtool: isDev ? "inline-source-map" : false,
|
||||
|
||||
Reference in New Issue
Block a user