From a09edbaa35f22b624915681e34ade42380f3c500 Mon Sep 17 00:00:00 2001 From: Philipp Fromme Date: Fri, 26 Apr 2019 11:35:23 +0200 Subject: [PATCH] feat(app): ensure production mode in distro Closes #1352 --- app/package.json | 2 +- app/prod.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 app/prod.js diff --git a/app/package.json b/app/package.json index ec8c4b37e6..2341027818 100644 --- a/app/package.json +++ b/app/package.json @@ -3,7 +3,7 @@ "version": "3.0.1", "description": "Camunda Modeler for BPMN, DMN and CMMN, based on bpmn.io", "private": true, - "main": "lib/index.js", + "main": "prod.js", "author": { "name": "Camunda Services GmbH", "email": "info@camunda.com", diff --git a/app/prod.js b/app/prod.js new file mode 100644 index 0000000000..1f2f60942c --- /dev/null +++ b/app/prod.js @@ -0,0 +1,14 @@ +/** + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. + * + * Camunda licenses this file to you under the MIT; you may not use this file + * except in compliance with the MIT License. + */ + +// ensure production mode +process.env.NODE_ENV = 'production'; + +require('./lib'); \ No newline at end of file