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

Cleanup filters/Speed up local build #499

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

anneke
Copy link
Collaborator

@anneke anneke commented Dec 31, 2024

A little bit of cleanup to make best use of Claudia's earlier refactoring of a seperate filters.js file.

@anneke anneke requested review from a team as code owners December 31, 2024 21:31
@anneke anneke requested review from SleeplessByte and maniflames and removed request for a team December 31, 2024 21:31
@anneke anneke changed the title Limit local build Cleanup filters/Speed up local build Dec 31, 2024
Comment on lines +235 to +236
const inputDir = 'dist/assets/images/social-preview-images/';
const outputDir = 'dist/assets/images/social-preview-images/';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is using fs, so this needs to use path.join('...', '...', '...');.

You may want to update the path and fs import to node: to prevent any package from providing those features down the line (security).

readablePostDate(dateObj) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the new syntax to provide filters?

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

Successfully merging this pull request may close these issues.

3 participants