Skip to content

Prevent duplicated css output #4

Description

@valioDOTch

Feature request
When building a dynamic package for an app, remove all CSS output, that is not part of the dynamic package
i.e. SCSS stemming from the application, its theme or the parent themes that was already loaded, when the application was loaded.

Reasoning
In our setup, we have a single app in our workspace. We use the dynamic package loader for additional app areas that are loaded depending on user configurations (e.g. depending on the company, there are additional menu entries).

If we build an app with a dynamic package, the build files are written to
workspace/build/[development|production|testing]/(appName)/(buildName)/resources/(dynPkgName)/(dynPkgName).css

However the CSS of this dynamically loadable package not only contains the code of the SCSS that is provided via the package, but also all of the SCSS that is part of the application (e.g. workspace/sass/var/all.scss), the application theme and the parent themes of that theme. In fact this is the major part of that particular CSS file (about 95%-100%).

From our perspective this is behaviour is bad, because

  1. it makes debugging the CSS a pain
  2. it creates unnecessary network overhead for end user devices
  3. it creates unnecessary performance overhead for end user devices

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions