Created
July 28, 2020 12:25
-
-
Save yamachu/da46b611b828a51aaa7c309b06e1d466 to your computer and use it in GitHub Desktop.
JavaScript + Webpack なファイルを Azure Functions で起動する時の function.json とwebpack.config.js の libraryTarget の対応
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"entryPoint": "fooFunction" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// このファイルをrequireすると { fooFunction: Function } が返ってくる | |
export const fooFunction = (context) => { | |
context.log('Hello'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// このファイルをrequireするとfunctionが返ってくる | |
module.exports = (context) => { | |
context.log('Hello'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment