22 lines
604 B
JavaScript
22 lines
604 B
JavaScript
export default function (eleventyConfig) {
|
|
// Permite que el servidor de desarrollo acepte conexiones desde otros
|
|
// dispositivos de la red local (por ejemplo: http://192.168.x.x:8081).
|
|
eleventyConfig.setServerOptions({
|
|
host: "0.0.0.0",
|
|
});
|
|
|
|
eleventyConfig.addFilter("formatPrice", (value, currency) => {
|
|
const locale = currency === "ars" ? "es-AR" : "en-US";
|
|
return new Intl.NumberFormat(locale).format(value);
|
|
});
|
|
|
|
return {
|
|
dir: {
|
|
input: "src",
|
|
output: "dist",
|
|
includes: "_includes",
|
|
layouts: "_includes/layouts",
|
|
data: "_data",
|
|
},
|
|
};
|
|
} |