diff --git a/build/generate-sri.mjs b/build/generate-sri.mjs index 9e579527e341..5622843f3479 100644 --- a/build/generate-sri.mjs +++ b/build/generate-sri.mjs @@ -19,11 +19,11 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url)) sh.config.fatal = true -const configFile = path.join(__dirname, '../hugo.yml') +const configFile = path.join(__dirname, '../config.yml') // Array of objects which holds the files to generate SRI hashes for. // `file` is the path from the root folder -// `configPropertyName` is the hugo.yml variable's name of the file +// `configPropertyName` is the config.yml variable's name of the file const files = [ { file: 'dist/css/bootstrap.min.css', diff --git a/package.json b/package.json index 24676c2db185..72cc10892016 100644 --- a/package.json +++ b/package.json @@ -94,10 +94,10 @@ "watch-js-main": "nodemon --watch js/src/ --ext js --exec \"npm-run-all js-lint js-compile\"", "watch-js-docs": "nodemon --watch site/assets/js/ --ext js --exec \"npm run js-lint\"", "astro-dev": "astro dev --root site --port 9001", - "astro-build": "astro build --root site", + "astro-build": "astro build --root site-new && rm -rf _site && cp -r site-new/dist _site", "astro-preview": "astro preview --root site", "astro-lint": "prettier --config site/.prettierrc.json -c --cache site && astro check --root site && tsc -p site --noEmit", - "astro-netlify": "npm-run-all dist release-sri astro-build" + "netlify": "npm-run-all dist release-sri astro-build" }, "peerDependencies": { "@popperjs/core": "^2.11.8"