Enable experimental-fetch

This commit is contained in:
Yarmo Mackenbach 2022-09-18 21:31:54 +02:00
parent ef64a3ec68
commit 3c5426bf96
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
3 changed files with 6 additions and 3 deletions

View file

@ -23,4 +23,4 @@ RUN npm install jsdom
EXPOSE 3000
CMD node ./dist/
CMD node --experimental-fetch ./dist/

View file

@ -1,4 +1,7 @@
{
"execArgs": [
"--experimental-fetch"
],
"env": {
"NODE_ENV": "development",
"KX_HIGHLIGHTS_1_NAME": "Yarmo Mackenbach",

View file

@ -37,13 +37,13 @@
"webpack-cli": "^4.9.2"
},
"scripts": {
"start": "node ./",
"start": "node --experimental-fetch ./",
"dev": "yarn run watch & yarn run build:static:dev",
"test": "mocha",
"watch": "./node_modules/.bin/nodemon --config nodemon.json ./",
"build": "yarn run build:server & yarn run build:static",
"build:server": "ncc build ./src/index.js -e jsdom -o dist",
"build:static": "webpack --config webpack.config.js --env static=true --env mode=production",
"build:static": "webpack --config webpack.config.js --env static=true --env mode=production",
"build:static:dev": "webpack --config webpack.config.js --env static=true --env mode=development",
"license:check": "./node_modules/.bin/license-check-and-add check",
"license:add": "./node_modules/.bin/license-check-and-add add",