Skip to content

Commit

Permalink
feat(app): ensure production mode in distro
Browse files Browse the repository at this point in the history
Closes #1352
  • Loading branch information
philippfromme authored and merge-me[bot] committed Apr 26, 2019
1 parent 03f7aa1 commit a09edba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 14 additions & 0 deletions app/prod.js
Original file line number Diff line number Diff line change
@@ -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');

0 comments on commit a09edba

Please sign in to comment.