aboutsummaryrefslogtreecommitdiff
path: root/vnext/package.json
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-11-06 04:30:51 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commit8c2b2cee1f8701479bafbd69069847e50e8f0d67 (patch)
treeda01fcbc17b705a74cb4b37b1b06d4b30dbaab29 /vnext/package.json
parent7b14a8f3faf7672f0aefbf93d5c37f62a169b535 (diff)
webpack -> postcss+esbuild
Diffstat (limited to 'vnext/package.json')
-rw-r--r--vnext/package.json8
1 files changed, 7 insertions, 1 deletions
diff --git a/vnext/package.json b/vnext/package.json
index 49acbc90..11f3f7fa 100644
--- a/vnext/package.json
+++ b/vnext/package.json
@@ -4,9 +4,12 @@
"description": "",
"scripts": {
"test": "jest",
+ "build:css": "postcss --verbose --map style.css.map src/index.css -d public/",
+ "build:js": "esbuild src/index.js --bundle --minify --target=safari11 --loader:.js=jsx --loader:.png=file --loader:.svg=file --outdir=dist",
+ "build": "cross-env NODE_ENV=production concurrently \"npm run build:css\" \"npm run build:js\"",
"dist": "webpack --mode=production --progress && esbuild --bundle --sourcemap --keep-names --platform=node --target=node18 --loader:.css=file --loader:.js=jsx --loader:.png=file --loader:.svg=file --outfile=dist/server.js server/index.js",
"start-ssr": "npm run dist && cross-env DEBUG=http node dist/server.js",
- "start": "webpack serve",
+ "start": "concurrently \"node serve.js\" \"npm run build:css -- -w\"",
"lint": "eslint src/**/*.js"
},
"keywords": [],
@@ -23,6 +26,7 @@
"@testing-library/react": "^13.4.0",
"babel-jest": "^29.2.2",
"babel-loader": "^9.1.0",
+ "concurrently": "^7.5.0",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.2.2",
@@ -44,6 +48,8 @@
"jest-environment-jsdom": "^29.2.2",
"mini-css-extract-plugin": "^2.6.1",
"postcss": "^8.4.18",
+ "postcss-cli": "^10.0.0",
+ "postcss-import": "^15.0.0",
"postcss-loader": "^7.0.1",
"postcss-preset-env": "^7.8.2",
"react-test-renderer": "^18.2.0",