fix: update gatsby

This commit is contained in:
zhanning.bzn 2019-11-20 22:07:29 +08:00
parent 7c0c7337b8
commit ff35dd866d
2 changed files with 4 additions and 4 deletions

View File

@ -3,9 +3,9 @@
module.exports = (api) => {
api.cache(() => process.env.NODE_ENV);
const isSite = api.env('site')
const isTest = api.env('site')
if (isSite) {
if (isTest) {
return {
"plugins": [
"transform-remove-strict-mode"

View File

@ -91,8 +91,8 @@
"scripts": {
"start": "NODE_ENV=site npm run site:develop",
"site:develop": "NODE_ENV=site gatsby develop --open",
"site:build": "NODE_ENV=site npm run site:clean && gatsby build --prefix-paths",
"site:clean": "NODE_ENV=site gatsby clean",
"site:build": "npm run site:clean && NODE_ENV=site gatsby build --prefix-paths",
"site:clean": "gatsby clean",
"site:deploy": "NODE_ENV=site npm run site:build && gh-pages -d public",
"update": "rm -rf node_modules/ && tnpm i && rm -rf build && tnpm run build",
"build": "webpack",