From f88b7e848baa9885379d4fe28bc23c82b8e5a0ca Mon Sep 17 00:00:00 2001 From: Susmitha Girumala Date: Mon, 28 Sep 2020 14:41:40 -0400 Subject: [PATCH] feat: Add clipboardjs to vendor --- ui/core/ember-cli-build.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ui/core/ember-cli-build.js b/ui/core/ember-cli-build.js index cc31a1b6c..25d88f3cc 100644 --- a/ui/core/ember-cli-build.js +++ b/ui/core/ember-cli-build.js @@ -20,6 +20,14 @@ module.exports = function (defaults) { }, }); + // Only import when in development or test mode + if (app.env.match(/(development)|(test)/i)) { + app.import('node_modules/clipboard/dist/clipboard.js'); + } + else { + app.import('node_modules/clipboard/dist/clipboard.min.js'); + } + // Use `app.import` to add additional libraries to the generated // output files. //