mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-09-11 05:46:28 +02:00
🚧 WIP
This commit is contained in:
@@ -8,8 +8,7 @@ import LoadablePlugin from "@loadable/webpack-plugin"
|
||||
import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer"
|
||||
|
||||
export const isDev = process.env.NODE_ENV === "development"
|
||||
const isLocal = process.env.LOCAL === "true"
|
||||
const isRegisterDiscordCommands = process.env.REGISTER_DISCORD_COMMANDS === "true"
|
||||
|
||||
const getStyleLoaders = (isWeb: boolean, isSass?: boolean) => {
|
||||
let loaders: RuleSetUseItem[] = [
|
||||
{
|
||||
@@ -46,11 +45,10 @@ const getPlugins = (isWeb: boolean) => {
|
||||
}),
|
||||
// Setting global variables
|
||||
new webpack.DefinePlugin({
|
||||
__CLIENT__: isWeb,
|
||||
__SERVER__: !isWeb,
|
||||
__DEV__: isDev,
|
||||
__LOCAL__: isLocal,
|
||||
__REGISTER_DISCORD_COMMANDS__: isRegisterDiscordCommands,
|
||||
SSR: !isWeb,
|
||||
DEV: isDev,
|
||||
REGISTER_DISCORD_COMMANDS: Boolean(process.env.REGISTER_DISCORD_COMMANDS),
|
||||
API_URL: JSON.stringify(process.env.API_URL),
|
||||
}),
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user