diff options
author | Vitaly Takmazov | 2023-03-07 12:45:40 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-03-07 12:45:40 +0300 |
commit | b4ce703820264a7ed16b5b3efee973aadc43335d (patch) | |
tree | 95b820f6aaf49c0497c6141a2502be15cc365b47 /package.json | |
parent | cfdb649ae18e25925dcc3c4acee6bc76754cc025 (diff) |
build vnext server with webpack
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package.json b/package.json index 89ca19b3..15619434 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "lint": "eslint .", "vnext:test": "jest", "vnext:build": "webpack -c vnext/webpack.config.js", - "vnext:build:ssr": "npm run vnext:build && esbuild --bundle --sourcemap --minify --keep-names --platform=node --target=node18 --loader:.js=jsx --loader:.png=file --loader:.svg=file --outfile=public/server.js vnext/server/index.js", - "vnext:start-ssr": "npm run vnext:build:ssr && cross-env DEBUG=http node public/server.js", + "vnext:build:ssr": "npm run vnext:build && webpack -c vnext/server/webpack.config.js", + "vnext:start-ssr": "npm run vnext:build:ssr && cross-env DEBUG=http node --enable-source-maps public/server.js", "vnext:start": "cross-env NODE_ENV=development webpack serve -c vnext/webpack.config.js --mode development", "vnext:lint": "eslint vnext/src/**/*.js" }, @@ -50,6 +50,7 @@ "autoprefixer": "^10.4.13", "babel-loader": "^9.1.2", "core-js": "^3.29.0", + "cors": "^2.8.5", "cross-env": "^7.0.3", "css-loader": "^6.7.3", "cssnano": "^5.1.15", |