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

feat(build): minimalist bundler #144

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

feat(build): minimalist bundler #144

wants to merge 2 commits into from

Conversation

Mesteery
Copy link
Collaborator

@Mesteery Mesteery commented Apr 23, 2021

This "bundler" supports :

  • GZipping (1-9 compression level, disabled by default.)
  • (inline: in HTML files) SVG optimization (paths, minfies, etc. See SVGO.) - waiting proposal: feat(front): externalize SVGs #145
  • A complete CSS bundling (autoprefixer, etc. See (advanced) CSSNano.)
  • Caching (all html-imported assets files are cached: md5 contenthash.)
  • It takes about 2-3 seconds to fully bundle the assets on my machine (with GZip, compression level 6.)
  • Last JS features are supported

However, it can be unstable (many regexes have been used). But for the moment it works correctly with the current assets.

A demo is available here :

@Mesteery Mesteery force-pushed the bundler branch 4 times, most recently from 2ffd9fd to 0ad0a0a Compare April 23, 2021 17:15
@Mesteery Mesteery linked an issue May 6, 2021 that may be closed by this pull request
- name: Set up Node.js 15
uses: actions/setup-node@v2
with:
node-version: 15
Copy link
Member

Choose a reason for hiding this comment

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

non

Copy link
Collaborator Author

@Mesteery Mesteery May 8, 2021

Choose a reason for hiding this comment

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

sauf que enlever tous les whitespace n'est pas suffisant. (donc au bout d'un moment, on est obligé de passer par un truc plus poussé...). puis de toute façon, c'est censé être que pour la CI donc ça gêne personne.
et si ça gêne quelqu'un pour X raison, la tienne aussi gêne car elle n'est pas Windows-compatible. (et est de toute façon pas exécutable car elle est directement dans le workflow)

@Mesteery Mesteery force-pushed the bundler branch 4 times, most recently from e7ac418 to 69b9646 Compare July 13, 2021 20:29
@Mesteery Mesteery force-pushed the bundler branch 2 times, most recently from be9759c to bae5c80 Compare November 27, 2021 13:12
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.

Minification des assets
2 participants