You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Design a solution to offer compiled and minified stylesheets without committing dist/ to the repository.
Background
The repository has a /dist folder. This folder provides compilation of stylesheets using non-native CSS (that is made native via postcss) and minifies the CSS (for smaller file size).
To build and commit /dist is:
unintuitive software development
extra, easy-to-forget step
excess data
Expectations
The NPM Package1 offers compiled files. Why? So clients can use non-native CSS, from releases, on software that does not compile CSS.
The NPM Package1 offers minification. Why? So users download smaller files.
The repository will not save compiled stylesheets from source that uses all native syntax. Why? Because a compiled, minified version of all native CSS is redundant.
Client can use, before a release, compiled stylesheet from source that uses non-native syntax. Why? So clients can use non-native CSS, from a commit-ish (e.g. commit, branches, tag, pre-releases), on software that does not compile CSS.
(Maybe) Paths to compiled files are less different from paths to source files. Currently src/lib/_imports/components/c-some-thing.css is compiled to dist/components/c-some-thing.css.
Goal
Design a solution to offer compiled and minified stylesheets without committing
dist/
to the repository.Background
The repository has a
/dist
folder. This folder provides compilation of stylesheets using non-native CSS (that is made native viapostcss
) and minifies the CSS (for smaller file size).To build and commit
/dist
is:Expectations
Why? So clients can use non-native CSS, from releases, on software that does not compile CSS.
Why? So users download smaller files.
Why? Because a compiled, minified version of all native CSS is redundant.
Why? So clients can use non-native CSS, from a commit-ish (e.g. commit, branches, tag, pre-releases), on software that does not compile CSS.
Currently
src/lib/_imports/
components/c-some-thing.css
is compiled todist/
components/c-some-thing.css
.References
Footnotes
@tacc/core-styles ↩ ↩2
The text was updated successfully, but these errors were encountered: