Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
chore(example): eager include styles
Browse files Browse the repository at this point in the history
Allows us to override styles in the to-be-expected manner.
  • Loading branch information
nikku committed Mar 28, 2022
1 parent a575c2a commit 8435007
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions example/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import exampleXML from './newDiagram.bpmn';
import EMAIL_TEMPLATES from './.camunda/element-templates/sendgrid-connector.json';
import REST_TEMPLATES from './.camunda/element-templates/http-json-connector.json';

import './style.css';

const TEMPLATES = [ ...EMAIL_TEMPLATES, ...REST_TEMPLATES ];

const url = new URL(window.location.href);
Expand Down
2 changes: 0 additions & 2 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
<link rel="stylesheet" href="vendor/bpmn-js-properties-panel/dist/assets/properties-panel.css" />
<link rel="stylesheet" href="vendor/bpmn-js-properties-panel/dist/assets/element-templates.css" />
<link rel="stylesheet" href="vendor/@ibm/plex/css/ibm-plex.min.css" />

<link rel="stylesheet" href="style.css" />
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
plugins: [
new CopyPlugin({
patterns: [
{ from: '*.{html,css}', context: 'example', to: '.' },
{ from: '*.html', context: 'example', to: '.' },
{ from: 'bpmn-js/dist/assets/**/*', context: 'node_modules', to: './vendor' },
{ from: 'bpmn-js-properties-panel/dist/assets/**/*', context: 'node_modules', to: './vendor' },
{ from: '@ibm/plex/{css/ibm-plex.min.css,IBM-Plex-Sans/fonts/{complete,split}/woff2/**}', context: 'node_modules', to: './vendor' }
Expand Down

0 comments on commit 8435007

Please sign in to comment.