Skip to content

Commit

Permalink
feat(cb2-9857): update webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
naathanbrown committed Jan 8, 2024
1 parent 73cbad3 commit 81b8202
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,6 @@ dist
# MAC files
.DS_Store


# Output files
.aws-sam/**
*Function.zip
4 changes: 2 additions & 2 deletions webpack/webpack.production.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const archiver = require('archiver');
const branchName = require('current-git-branch');

const LAMBDA_NAME = 'GetLambdaFunction';
const OUTPUT_FOLDER = './dist'
const OUTPUT_FOLDER = './'
const REPO_NAME = 'cvs-svc-minimum-app-version';
const BRANCH_NAME = branchName().replace(/\//g, "-");
const COMMIT_HASH = process.env.ZIP_NAME ? process.env.ZIP_NAME : 'local';
Expand Down Expand Up @@ -66,7 +66,7 @@ module.exports = env => {
{
inputPath: `.aws-sam/build/${LAMBDA_NAME}`,
outputPath: `${OUTPUT_FOLDER}`,
outputName: `${REPO_NAME}-${BRANCH_NAME}-${commit}`,
outputName: `${COMMIT_HASH}-${LAMBDA_NAME}`,
}
],
}),
Expand Down

0 comments on commit 81b8202

Please sign in to comment.