Webpack loader that uses the Ruby-based haml-transpiler-server gem to transpile HAML files to HTML. Version 4.0.0 requires a separate Ruby server process (start via `hamlts`), communicating over TCP/IP. Unlike pure JavaScript HAML transpilers, this leverages the original Ruby implementation for correctness, at the cost of architectural complexity and an external dependency on Ruby and the gem. Configuration allows custom IP, port, and module export style. Suitable for projects already using Ruby HAML tooling.
npm install haml-transpiler-server-loaderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Webpack rule that chains file-loader and haml-transpiler-server-loader to transpile .html.haml files into standalone HTML files.
Install Ruby, run 'gem install haml-transpiler-server', then start server with 'hamlts' before webpack
Use webpack --watch or integrate with watchman for automatic rebuilds
Ensure hamlts is running on default localhost:5487 or match custom configuration
Run 'hamlts' in terminal before starting webpack, or configure loader with correct port
Run 'gem install haml-transpiler-server'