diff --git a/.github/workflows/production-release.yml b/.github/workflows/production-release.yml index 0344ad1..4b19b67 100644 --- a/.github/workflows/production-release.yml +++ b/.github/workflows/production-release.yml @@ -33,7 +33,7 @@ jobs: - name: Install dependencies run: npm ci - name: Build the project - run: npm run build + run: MODE=prod npm run build - name: Deploy to GitHub Packages run: npm publish env: @@ -53,7 +53,7 @@ jobs: - name: Install dependencies run: npm ci - name: Build the project - run: npm run build + run: MODE=prod npm run build - name: Deploy to NPM registry run: npm publish env: @@ -80,7 +80,7 @@ jobs: - name: Install dependencies run: npm ci - name: Build the project - run: npm run build + run: MODE=prod npm run build - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v3 with: diff --git a/rollup.config.js b/rollup.config.js index 9ed4505..7ea09b8 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -10,7 +10,7 @@ export default { file: 'dist/capture-eye.bundled.js', format: 'esm', name: 'CaptureEye', - sourcemap: true, + sourcemap: process.env.MODE !== 'prod', }, onwarn(warning) { if (warning.code !== 'THIS_IS_UNDEFINED') {