File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 - name : Install dependencies
3434 run : npm ci
3535 - name : Build the project
36- run : npm run build
36+ run : MODE=prod npm run build
3737 - name : Deploy to GitHub Packages
3838 run : npm publish
3939 env :
5353 - name : Install dependencies
5454 run : npm ci
5555 - name : Build the project
56- run : npm run build
56+ run : MODE=prod npm run build
5757 - name : Deploy to NPM registry
5858 run : npm publish
5959 env :
8080 - name : Install dependencies
8181 run : npm ci
8282 - name : Build the project
83- run : npm run build
83+ run : MODE=prod npm run build
8484 - name : Configure AWS credentials
8585 uses : aws-actions/configure-aws-credentials@v3
8686 with :
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export default {
1313 file : 'dist/capture-eye.bundled.js' ,
1414 format : 'esm' ,
1515 name : 'CaptureEye' ,
16- sourcemap : true ,
16+ sourcemap : process . env . MODE !== 'prod' ,
1717 } ,
1818 onwarn ( warning ) {
1919 if ( warning . code !== 'THIS_IS_UNDEFINED' ) {
You can’t perform that action at this time.
0 commit comments