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

How to optimize? #270

Closed
ndaidong opened this issue Oct 6, 2018 · 4 comments
Closed

How to optimize? #270

ndaidong opened this issue Oct 6, 2018 · 4 comments

Comments

@ndaidong
Copy link

ndaidong commented Oct 6, 2018

I see eleventy is great new one generator tool. After a quick test, it looks like it doesn't process CSS/JS files, just keeps the SCRIPT and STYLE tags as they are. If I didn't miss something, here is my few questions:

  • How to minimize JS/CSS files?
  • How to merge them to just 1 .css file at header and 1.js at the end of body tag?
  • How to process CSS files with postcss?

Thank you.

@edwardhorsford
Copy link
Contributor

Hi @ndaidong,

I think the idea is that Eleventy doesn't have an opinion about this other stuff. But I agree it's useful to have - I couldn't work without a build pipeline.

I started with the Eleventy One starter project, which is a starter blog by @philhawksworth .

It includes sass and js compilation / uglification with gulp. I don't know about postcss, but I suspect you could extend EleventyOne to do it.

@zachleat
Copy link
Member

zachleat commented Oct 6, 2018

Hey @ndaidong did you see our tutorials page? https://www.11ty.io/docs/tutorials/

@ndaidong
Copy link
Author

ndaidong commented Oct 8, 2018

@edwardhorsford
@zachleat
thank you, I've taken a look at the documentation. It seems we have to write the filters, not already to use.

@zachleat
Copy link
Member

zachleat commented Oct 8, 2018

Ah, okay. I’ve opened #272 to continue that discussion for an officially supported asset pipeline. Let me know if you have other questions!

@zachleat zachleat closed this as completed Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants