Skip to content

Commit

Permalink
build demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nayacco committed Sep 16, 2020
1 parent 1ef1579 commit c5e3ee0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/goldsubmarine/workflow-bpmn-modeler@master/docs/demo/favicon.ico">
<link rel="icon" href="/workflow-bpmn-modeler/demo/favicon.ico">
<title>vue-bpmn</title>
<link href="https://cdn.jsdelivr.net/gh/goldsubmarine/workflow-bpmn-modeler@master/docs/demo/js/app.js" rel="preload" as="script"><link href="https://cdn.jsdelivr.net/gh/goldsubmarine/workflow-bpmn-modeler@master/docs/demo/js/chunk-elementUI.js" rel="preload" as="script"><link href="https://cdn.jsdelivr.net/gh/goldsubmarine/workflow-bpmn-modeler@master/docs/demo/js/chunk-libs.js" rel="preload" as="script"><link href="https://cdn.jsdelivr.net/gh/goldsubmarine/workflow-bpmn-modeler@master/docs/demo/js/chunk-vue.js" rel="preload" as="script"><link href="https://cdn.jsdelivr.net/gh/goldsubmarine/workflow-bpmn-modeler@master/docs/demo/js/runtime.js" rel="preload" as="script"></head>
<link href="/workflow-bpmn-modeler/demo/js/app.js" rel="preload" as="script"><link href="/workflow-bpmn-modeler/demo/js/chunk-elementUI.js" rel="preload" as="script"><link href="/workflow-bpmn-modeler/demo/js/chunk-libs.js" rel="preload" as="script"><link href="/workflow-bpmn-modeler/demo/js/chunk-vue.js" rel="preload" as="script"><link href="/workflow-bpmn-modeler/demo/js/runtime.js" rel="preload" as="script"></head>

<body>
<noscript>
Expand All @@ -16,6 +16,6 @@
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/goldsubmarine/workflow-bpmn-modeler@master/docs/demo/js/runtime.js"></script><script type="text/javascript" src="https://cdn.jsdelivr.net/gh/goldsubmarine/workflow-bpmn-modeler@master/docs/demo/js/chunk-elementUI.js"></script><script type="text/javascript" src="https://cdn.jsdelivr.net/gh/goldsubmarine/workflow-bpmn-modeler@master/docs/demo/js/chunk-vue.js"></script><script type="text/javascript" src="https://cdn.jsdelivr.net/gh/goldsubmarine/workflow-bpmn-modeler@master/docs/demo/js/chunk-libs.js"></script><script type="text/javascript" src="https://cdn.jsdelivr.net/gh/goldsubmarine/workflow-bpmn-modeler@master/docs/demo/js/app.js"></script></body>
<script type="text/javascript" src="/workflow-bpmn-modeler/demo/js/runtime.js"></script><script type="text/javascript" src="/workflow-bpmn-modeler/demo/js/chunk-elementUI.js"></script><script type="text/javascript" src="/workflow-bpmn-modeler/demo/js/chunk-vue.js"></script><script type="text/javascript" src="/workflow-bpmn-modeler/demo/js/chunk-libs.js"></script><script type="text/javascript" src="/workflow-bpmn-modeler/demo/js/app.js"></script></body>

</html>
2 changes: 1 addition & 1 deletion docs/demo/js/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "https://cdn.jsdelivr.net/gh/goldsubmarine/workflow-bpmn-modeler@master/docs/demo/";
/******/ __webpack_require__.p = "/workflow-bpmn-modeler/demo/";
/******/
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
Expand Down
3 changes: 1 addition & 2 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ const version = require('./package.json').version
const fs = require('fs')

const NODE_ENV = process.env.NODE_ENV
console.log(NODE_ENV)
let publicPath = '/'
let outputDir = 'dist'
let appFileName = 'Demo'
if (NODE_ENV === 'demo') {
publicPath = 'https://cdn.jsdelivr.net/gh/goldsubmarine/workflow-bpmn-modeler@master/docs/demo/'
publicPath = '/workflow-bpmn-modeler/demo/'
outputDir = 'docs/demo'
appFileName = 'Demo'
}
Expand Down

0 comments on commit c5e3ee0

Please sign in to comment.