workflow: include commit link in template explorer

This commit is contained in:
Evan You
2019-10-04 22:40:54 -04:00
parent ea4a352ee6
commit a0f442f1d4
6 changed files with 38 additions and 7 deletions

View File

@@ -133,6 +133,7 @@ function createConfig(output, plugins = []) {
function createReplacePlugin(isProduction, isBunlderESMBuild, isBrowserBuild) {
return replace({
__COMMIT__: `"${process.env.COMMIT}"`,
__DEV__: isBunlderESMBuild
? // preserve to be handled by bundlers
`process.env.NODE_ENV !== 'production'`