Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a24540b

Browse files
do react ssr build
1 parent 407db83 commit a24540b

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

‎.babelrc‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"presets": ['env', 'react'],
3+
"plugins": [
4+
["module-resolver", {
5+
"root": ["./"],
6+
}]
7+
]
8+
}

‎package.json‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,15 @@
2222
"build": "npm-run-all --parallel build:**",
2323
"build:app": "react-scripts build",
2424
"build:functions": "netlify-lambda build functions",
25-
"postbuild": "npm run react",
26-
"react": "cross-env BABEL_ENV=server parcel build functions/react-ssr.js -d functions-build --public-url /functions-build -o react-test.js --no-minify",
2725
"test": "react-scripts test --env=jsdom"
2826
},
2927
"devDependencies": {
28+
"babel-cli": "^6.26.0",
29+
"babel-plugin-module-resolver": "^3.1.1",
30+
"babel-preset-env": "^1.7.0",
31+
"babel-preset-react": "^6.24.1",
3032
"cross-env": "^5.2.0",
33+
"mini-css-extract-plugin": "^0.4.1",
3134
"netlify-lambda": "^0.4.0",
3235
"npm-run-all": "^4.1.3",
3336
"parcel-bundler": "^1.9.4"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /