PDA

View Full Version : Including just the Sencha Charts styles in my theme



patrickrs
20 Feb 2015, 5:23 AM
I'm creating a custom theme using Ext JS 5.1. We want to use the sencha-charts package, but in a slightly different-than-usual way.

We want the styles for the charts incorporated into our theme styles, but we want to keep the sencha-charts JavaScript as a separate file.

I've successfully included charts in my app and even in my theme package by adjusting app.json and package.json, but it seems to be an all-or-nothing deal: you either get both the charts Sass and the JS, or nothing.

Is there a way for me to include the charts Sass into my custom theme without also pulling in the JS? I've tried various ways, but when I check the CSS output, the charts styles never show up.

Thanks!

slemmon
16 Mar 2015, 2:16 PM
Is there a way for me to include the charts Sass into my custom theme without also pulling in the JS?

To clarify, the issue you're having is that when you build your custom theme you're getting the charts / framework JS classes (not just the theme overrides) in your custom theme? Is that correct?