Ultimate, simple, powerful and extensible precompiler.
npm install marech-cli
// marech.config.js
const { generateConfig } = require("marech-cli");
module.exports = generateConfig(__dirname, {
output: "./build",
input: { path: "./src/website", match: "**/*.html" },
// rules: {
// // prettier: { enabled: false, options: {} },
// // htmlMinifier: { enabled: false, options: {} },
// // mappedPaths: { "@/(**)": join(__dirname, "./src/$1") },
// },
});
npx marech build [-p marech.config.js]
npx marech build --watch [-p marech.config.js]
Use the flag --watchConfig
to watch the marech.config.js
file.
Have fun!
-
AbstractFileSystem.
-
AbstractTransformer.
-
Follows marech.config.js.
-
marech build
andmarech build --watch
.
Greats projects used or that have inspired the marech project:
- MIT - see LICENSE.mit.txt or https://opensource.org/licenses/MIT
- Gabriel Rodrigues - https://github.com/guesant