mirror of
https://github.com/vacp2p/vac.dev-experimental-old.git
synced 2025-02-19 16:54:24 +00:00
Explicitly set NODE_ENV for all commands
This commit is contained in:
parent
08648a119c
commit
41dfdb8d6c
@ -12,10 +12,6 @@ const POST_BUILD_STYLESHEET = `${SITE_ROOT}/assets/css/`;
|
|||||||
const PRE_BUILD_STYLESHEET = "./src/style.css";
|
const PRE_BUILD_STYLESHEET = "./src/style.css";
|
||||||
const TAILWIND_CONFIG = "./tailwind.config.js";
|
const TAILWIND_CONFIG = "./tailwind.config.js";
|
||||||
|
|
||||||
const DEVELOPMENT_ENVIRONMENT = "development";
|
|
||||||
const environment = process.env.NODE_ENV || DEVELOPMENT_ENVIRONMENT;
|
|
||||||
const isDevelopmentBuild = environment === DEVELOPMENT_ENVIRONMENT;
|
|
||||||
|
|
||||||
// Fix for Windows compatibility
|
// Fix for Windows compatibility
|
||||||
const isWindowsPlatform = process.platform === "win32";
|
const isWindowsPlatform = process.platform === "win32";
|
||||||
const jekyll = isWindowsPlatform ? "jekyll.bat" : "jekyll";
|
const jekyll = isWindowsPlatform ? "jekyll.bat" : "jekyll";
|
||||||
@ -23,6 +19,8 @@ const spawn = isWindowsPlatform
|
|||||||
? require("win-spawn")
|
? require("win-spawn")
|
||||||
: require("child_process").spawn;
|
: require("child_process").spawn;
|
||||||
|
|
||||||
|
const isDevelopmentBuild = process.env.NODE_ENV === "development";
|
||||||
|
|
||||||
// Custom PurgeCSS Extractor for Tailwind CSS
|
// Custom PurgeCSS Extractor for Tailwind CSS
|
||||||
const purgeFromTailwind = content => content.match(/[\w-/:]+(?<!:)/g) || [];
|
const purgeFromTailwind = content => content.match(/[\w-/:]+(?<!:)/g) || [];
|
||||||
|
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:production": "NODE_ENV=production gulp",
|
"build:production": "NODE_ENV=production gulp",
|
||||||
"build:dev": "gulp",
|
"build:dev": "NODE_ENV=development gulp",
|
||||||
"dev": "gulp serve",
|
"dev": "NODE_ENV=development gulp serve",
|
||||||
"start": "npm run dev"
|
"start": "npm run dev"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user