mirror of
https://gitee.com/antv/g6.git
synced 2024-12-02 11:48:29 +08:00
fix: update gatsby
This commit is contained in:
parent
7c0c7337b8
commit
ff35dd866d
@ -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"
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user