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

refactor -> class jsbundle #2

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

milahu
Copy link

@milahu milahu commented May 7, 2021

reduce the nunjuck interface to

{% jsBundleHead %}{# vite js bundle #}
...
{% jsBundleFoot %}{# vite js bundle #}

reduce the config interface to

new JsBundle(staticConfig).addNunjucksShortcodes(eleventyConfig);

factor out the staticConfig part of .eleventy.js

read manifest.json only once

remove unneeded async code

prettify output of concurrently

use cross-env and npm-run-all for cross platform

set vite devserver port with https://github.com/imwtr/find-free-port-sync

move most config to .eleventy.js

use sirv-cli as http server - lightweight

dependencies: use latest versions by default

todo: ignore src/client (etc.) via .eleventy.js not .eleventyignore (centralize config)
-> wontfix @ https://github.com/11ty/eleventy/issues/188

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.

2 participants