diff --git a/package.json b/package.json index 067d927f..ccd3bf0b 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,11 @@ "author": "Presidenza del Consiglio dei Ministri", "license": "BSD-3-Clause", "scripts": { - "start": "cross-env NODE_ENV=development webpack-dev-server --config ./config/webpack.config.js", - "start:dist": "cross-env NODE_ENV=production webpack-dev-server --config ./config/webpack.config.js && http-server ./dist -o", + "start": "cross-env NODE_ENV=development NODE_OPTIONS=--openssl-legacy-provider webpack-dev-server --config ./config/webpack.config.js", + "start:dist": "cross-env NODE_ENV=production NODE_OPTIONS=--openssl-legacy-provider webpack-dev-server --config ./config/webpack.config.js && http-server ./dist -o", "lint:js": "./node_modules/.bin/eslint \"src/**/*.js\"", "lint:styles": "stylelint \"src/**/*.scss\"", - "build": "cross-env NODE_ENV=production webpack --config ./config/webpack.config.js", + "build": "cross-env NODE_ENV=production NODE_OPTIONS=--openssl-legacy-provider webpack --config ./config/webpack.config.js", "deploy": "node ./config/site.deploy.js", "documentation-deploy-to-gh-pages": "npm run build && gh-pages -d dist -m 'chore: update documentation'", "version": "conventional-changelog -p angular -i CHANGELOG.md -s && node scripts/wait-confirm && git add CHANGELOG.md",