diff options
Diffstat (limited to 'vnext/package.json')
-rw-r--r-- | vnext/package.json | 8 |
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", |