Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider changing build tools to postcss and rollup #43

Open
natalialuzuriaga opened this issue Aug 1, 2024 · 1 comment
Open

Consider changing build tools to postcss and rollup #43

natalialuzuriaga opened this issue Aug 1, 2024 · 1 comment

Comments

@natalialuzuriaga
Copy link
Collaborator

Currently, build tools used for this website are postcss and the 11ty vite plugin. There was a bug present when using the passThroughCopy function that caused files to not be passed in the dist directory of the website, when making a prod build. This is why we decided to abandon the 11ty vite plugin for the metrics website. Look into whether /open is affected by this bug and consider whether it is necessary to change build tools to postcss and rollup.

@natalialuzuriaga
Copy link
Collaborator Author

Looks like /open is affected by this bug, along with some CSS not being applied in the prod build (works fine locally though). Let's change the build tools to match what we have implemented in the metrics website.

For CSS processing, metrics website uses postcss, cssnano, autoprefixer, and fullhuman/postcss-purgecss. Will have to set up a postcss.config file
https://github.com/DSACMS/metrics/blob/c009ed50b708de3fe9a4fa50f7511033466aed53/app/postcss.config.js#L3
https://github.com/DSACMS/metrics/blob/c009ed50b708de3fe9a4fa50f7511033466aed53/app/package.json#L9-L10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant