Only include CSS/JS for components used in an app?

Is it possible to be more selective about what’s included in an Ionic build?

For example, is it possible to include only the CSS and JS for the components you are actually using in an app?

Perhaps JS already does this, but the CSS seems to include CSS for every component and weighs in at over 22,000 lines - pretty hefty.

With a modest app build I have a 453 KB main.css and a 4.8 MB main.js file.


I found my issue, the app’s /www/ is home to the uncompressed CSS/JS.

You can find the compressed CSS and Js within:


(I do not yet have ios setup).