Skip to content

How we use CodeSigningPlugin with [email protected] & [email protected]? #818

Closed Answered by jbroma
baka3k asked this question in Q&A
Discussion options

You must be logged in to vote

This is the correct behaviour, we don't sign the index.bundle since they contain the main entry to the app and need to be bundled with the app itself so there is no point in doing code signing there.

compiler.hooks.assetEmitted.tapPromise(
      { name: pluginName, stage: 20 },
      async (file, { outputPath, content, compilation }) => {
		// 👇 this is usually equal to `index.bundle`
        const mainBundleName = compilation.outputOptions.filename as string;
        if (!this.shouldSignFile(file, mainBundleName, excludedChunks)) {
          return;
        }
      // ...
	  }
);

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jbroma
Comment options

@baka3k
Comment options

Comment options

You must be logged in to vote
4 replies
@jbroma
Comment options

Answer selected by baka3k
@baka3k
Comment options

@jbroma
Comment options

@baka3k
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants