consul/ui/packages/consul-ui/app/styles
John Cowen 39f15306d9
ui: Change approach to loading debug.css (#12242)
We need a way to load certain CSS based on the environment you are viewing, i.e. we have debug CSS that we use for our Eng Documentation and various other DX utilities that shouldn't be compiled into our production or test builds.

Previously we would compile two entirely different CSS files (app and debug) and the load one or the other depending on which environment you were in.

This approach just empties out the debug.css file in certain environments (prod/test) which means we can just import that file from app. When in staging/development this imports the contents of debug.css (quite a bit of CSS) whereas when building for production/test this debug.css is emptied out during the build process.

There is a slight little hack in order to have this work, we import _debug.scss which imports the debug.scss file. I couldn't for the life of me figure out how to have broccoli empty out a file during the build process, so instead we essentially copy over debug.scss during dev and create an empty file during prod to _debug.scss.

When using make build to build an artifact for production CSS remains at ~58kb (during dev its a lot bigger than this)
2022-02-03 08:40:03 +00:00
..
base ui: Alias all our Structure Icons to Flight Icons (#12209) 2022-02-02 13:24:47 +00:00
layouts ui: Replaces almost all remaining instances of SASS variables with CSS (#11200) 2021-10-07 19:21:11 +01:00
routes/dc ui: Alter position of dashboard button in the service instance header (#11988) 2022-01-12 09:31:54 +00:00
variables ui: Fix brand coloring for inline-code plus docs (#11578) 2021-11-23 18:32:11 +00:00
app.scss ui: Change approach to loading debug.css (#12242) 2022-02-03 08:40:03 +00:00
components.scss ui: Upgrade AuthDialog (#11913) 2022-01-07 19:08:25 +00:00
debug.scss ui: Change approach to loading debug.css (#12242) 2022-02-03 08:40:03 +00:00
icons.scss ui: Alias all our Structure Icons to Flight Icons (#12209) 2022-02-02 13:24:47 +00:00
layout.scss ui: Refactor KV and Lock Sessions following partitions update (#11666) 2021-12-01 11:33:33 +00:00
prism-coldark-cold.scss
prism-coldark-dark.scss
routes.scss
themes.scss ui: Enable theming (#12134) 2022-01-21 12:19:03 +00:00
typography.scss ui: Upgrade AuthDialog (#11913) 2022-01-07 19:08:25 +00:00
variables.scss