Skip to content

Instantly share code, notes, and snippets.

@JefCurtis
Last active September 12, 2018 16:28
Show Gist options
  • Select an option

  • Save JefCurtis/b2d34c2d3201e09b4c534ed6574cb9ae to your computer and use it in GitHub Desktop.

Select an option

Save JefCurtis/b2d34c2d3201e09b4c534ed6574cb9ae to your computer and use it in GitHub Desktop.
Gmail add-on: Add HTML Webpack plugin for AppsScript template
const HtmlWebpackPlugin = require("html-webpack-plugin");
[...]
module.exports = {
[...]
plugins: [
new HtmlWebpackPlugin({
filename: "appsscript.json",
template: join(root, "config", "appsscript.json.ejs"),
chunks: [],
addon: {
name: "My Gmail add-on"
},
}),
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment