# DMN-JS Development Env setup question

**URL:** <https://forum.bpmn.io/t/dmn-js-development-env-setup-question/5089>\
**Category:** Contributing\
**Created:** [August 12, 2020, 3:32pm UTC](https://forum.bpmn.io/t/dmn-js-development-env-setup-question/5089 "2020-08-12T15:32:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mallesh](https://forum.bpmn.io/user_avatar/forum.bpmn.io/mallesh/32/1826_2.png) [@mallesh](https://forum.bpmn.io/u/mallesh)\
**Post date:** [August 12, 2020, 3:32pm UTC](https://forum.bpmn.io/t/dmn-js-development-env-setup-question/5089/1 "2020-08-12T15:32:57Z")

</div>

I’m trying to extend dmn-js. I have followed following link to setup project locally

[https://github.com/bpmn-io/dmn-js/blob/develop/.github/CONTRIBUTING.md](https://github.com/bpmn-io/dmn-js/blob/develop/.github/CONTRIBUTING.md) ( Setting up the project locally)

After our changes, we followed the following steps to test with our application

1. dmn-js/npm run travis
2. cd dmn-js/packages
3. created npm links for all the 5 packages (dmn-js/packages/dmn-js-\*)
4. from my project root (/foo\_project), I have linked them using npm link \<\> (Repeated for all dmn-js 5 packages)
5. from my foo\_project/style.css imported all css files that are insdie dmn-js/packages/dmn-js/dist/assets

**issue** : Styles sheets not applied properly. as we investigated whereever dmn-js-\* styles sheets used “var” is not working. If we fall back to npm install dmn-js, style sheets are working, but if we include dmn-js-extension, var is not working.

**Question** did we follow correct steps to setup our development environment?

btw we have changed rollup.clonfig.js

```auto
const distros = [
  {
    input: 'Viewer',
    output: 'dmn-viewer'
  },
  {
    input: 'NavigatedViewer',
    output: 'dmn-navigated-viewer'
  },
  {
    input: 'Modeler',
    output: 'dmn-modeler'
  },
  {
    input: 'extension/ViewerExt',
    output: 'dmn-viewer-ext'
  },
  {
    input: 'extension/ModelerExt',
    output: 'dmn-modeler-ext'
  }
];

const configs = distros.reduce(function(configs, distro) {
  const {
    input,
    output
  } = distro;

  return [
    ...configs,
    {
      input: `./src/${input}.js`,
      output: {
        name: 'DmnJS',
        file: `${outputDir}/${output}.development.js`,
        format: 'umd'
      },
      plugins: pgl([
        banner(output)
      ])
    },
    {
      input: `./src/${input}.js`,
      output: {
        name: 'DmnJS',
        file: `${outputDir}/${output}.production.min.js`,
        format: 'umd'
      },
      plugins: pgl([
        banner(output, true),
        uglify({
          output: {
            comments: /license|@preserve/
          }
        })
      ])
    }
  ];
}, []);

```

---

<div class="post-metadata">

**Author:** ![mallesh](https://forum.bpmn.io/user_avatar/forum.bpmn.io/mallesh/32/1826_2.png) [@mallesh](https://forum.bpmn.io/u/mallesh)\
**Post date:** [August 12, 2020, 3:43pm UTC](https://forum.bpmn.io/t/dmn-js-development-env-setup-question/5089/2 "2020-08-12T15:43:31Z")

</div>

![dmn-is_css_var_issue](https://forum.bpmn.io/uploads/default/original/2X/f/f1be4de3d115a832a69374c9f3df8901fa4e7677.png)

---

<div class="post-metadata">

**Author:** ![mallesh](https://forum.bpmn.io/user_avatar/forum.bpmn.io/mallesh/32/1826_2.png) [@mallesh](https://forum.bpmn.io/u/mallesh)\
**Post date:** [August 12, 2020, 5:41pm UTC](https://forum.bpmn.io/t/dmn-js-development-env-setup-question/5089/3 "2020-08-12T17:41:53Z")

</div>

It seems using npm run travis is not the command to run! I see following differences

1. npm install dmn-js --\> i see all .css files under nodemodules/dmn-js/dist/assets don’t have var(). all css variables replaced with actual values

2. local project development setup (using npm run travis and then npm link) is not replacing css variables.

can some one help me how to fix step#2 above to get css files just like step#1 above

---

<div class="post-metadata">

**Author:** ![nikku](https://forum.bpmn.io/user_avatar/forum.bpmn.io/nikku/32/5130_2.png) [@nikku](https://forum.bpmn.io/u/nikku)\
**Post date:** [July 22, 2025, 3:34pm UTC](https://forum.bpmn.io/t/dmn-js-development-env-setup-question/5089/4 "2025-07-22T15:34:29Z")

</div>

Closed on July 22, 2025, 3:34pm UTC


