Scss Compiler

Based on scssphp/scssphp this package allows more control on the compilation process through plugins, a bit similar to how webpack does it. That allows for example to define aliases, custom imports, asset extraction, manifest, name hashing and all sorts of plugins.

The compiler allows compiling several files at the same time, all outputed in the same public folder. During the compilation it will trigger events that any plugin can subscribe to, here's the general workflow :

  • plugins are initialised
  • compilation starts
  • a file compilation starts
  • asset extraction starts
  • asset extraction ends
  • css optimisation starts
  • css optimisation ends
  • sourcemap writing starts
  • sourcemap writing ends
  • a file compilation ends
  • assets are written on disk
  • compilation ends

Roadmap

  • chunking
  • async events
You must enable javascript to view this website