Bundle js and css files with janet
Add to your project.janet
file
(defproject
... ; more stuff here
:dependencies ["https://github.com/joy-framework/bundler"])
Assuming you have some *.js
and *.css
files in a public/
folder, from your root project folder (the one with project.janet
in it), run this:
(import bundler)
(bundler/bundle)
And it should output two bundled files (the same js/css with \n
characters between).
You can also give an explicit path to your js/css files:
(bundler/bundle "assets")