Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save JefCurtis/692584a180d5d20216dd04cd51c03505 to your computer and use it in GitHub Desktop.
Gmail add-on: Copy clasp.json file to the build directory
const { env } = require("process");
const deployEnv = env.DEPLOY_ENV || "dev";
[...]
module.exports = {
[...]
plugins: [
new CopyWebpackPlugin([
{ from: join(root, `config/${deployEnv}/.clasp.json`), to: ".", ToType: "file" },
]),
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment