Description
Lume plugins like Postcss, esbuild, Terser, SASS or Lightning CSS process and bundle your CSS and JavaScript files. Combine them with source_maps to create the source maps files to debug your code in the browser's development tools.
Installation
Import this plugin in your _config.ts file to use it:
import lume from "@lumeland/lume";
import sass from "@lumeland/plugin-sass";
import postcss from "@lumeland/plugin-postcss";
import esbuild from "@lumeland/plugin-esbuild";
import sourceMaps from "@lumeland/plugin-source-maps";
const site = lume();
// Process your CSS and JS code with other plugins
site.use(sass());
site.use(postcss());
site.use(esbuild());
// Use the source maps plugin to generate the .map files
site.use(sourceMaps(/* Options */));
export default site;