mirror of
https://github.com/vacp2p/vac.dev-experimental-old.git
synced 2025-02-16 23:36:28 +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 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
|
||||
const isWindowsPlatform = process.platform === "win32";
|
||||
const jekyll = isWindowsPlatform ? "jekyll.bat" : "jekyll";
|
||||
@ -23,6 +19,8 @@ const spawn = isWindowsPlatform
|
||||
? require("win-spawn")
|
||||
: require("child_process").spawn;
|
||||
|
||||
const isDevelopmentBuild = process.env.NODE_ENV === "development";
|
||||
|
||||
// Custom PurgeCSS Extractor for Tailwind CSS
|
||||
const purgeFromTailwind = content => content.match(/[\w-/:]+(?<!:)/g) || [];
|
||||
|
||||
|
@ -17,8 +17,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build:production": "NODE_ENV=production gulp",
|
||||
"build:dev": "gulp",
|
||||
"dev": "gulp serve",
|
||||
"build:dev": "NODE_ENV=development gulp",
|
||||
"dev": "NODE_ENV=development gulp serve",
|
||||
"start": "npm run dev"
|
||||
},
|
||||
"repository": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user