Improve Windows compatibility for npm run analyze
Adding "env" before setting environmental variables makes it cross-platform (i.e. work on Windows in addition to Unix / Mac). Tested Windows 10 x64
This commit is contained in:
parent
df4f013276
commit
d802da0a94
@ -7,7 +7,7 @@
|
|||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build && node ./scripts/generate-sitemap",
|
"build": "next build && node ./scripts/generate-sitemap",
|
||||||
"serve": "next start",
|
"serve": "next start",
|
||||||
"analyze": "ANALYZE=true next build"
|
"analyze": "env ANALYZE=true next build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mapbox/rehype-prism": "^0.5.0",
|
"@mapbox/rehype-prism": "^0.5.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user