Use the Less compiler to build .less
files from source
npm install --save-dev snowpack-plugin-less
add this plugin to your Snowpack config:
snowpack.config.json
{
"plugins": [
"snowpack-plugin-less"
]
}
snowpack.config.js
const path = require("path");
module.exports = {
// ...another config
"plugins": [
[
"snowpack-plugin-less",
{ /* less render options */ }
]
]
}