-
Notifications
You must be signed in to change notification settings - Fork 13
/
.twelvety.js
32 lines (32 loc) · 993 Bytes
/
.twelvety.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Twelvety options can be required using @12ty
// See .eleventy.js for more information
module.exports = {
// Directory structure
dir: {
// ⬇ Eleventy uses these
input: "src",
output: "dist",
includes: "_includes",
layouts: "_layouts",
data: "_data",
// ⬇ Eleventy doesn't use these but Twelvety does
assets: "_assets",
styles: "_assets/styles",
images: "_assets/images",
},
// Eleventy environment
// Production or development set in package.json scripts
env: process.env.ELEVENTY_ENV,
// Enable Sass's indented syntax
// Documentation: https://sass-lang.com/documentation/syntax#the-indented-syntax
indentedSass: false,
// Image formats and quality to generate
// Pass `same` to generate responsive images in the input format
// Documentation: https://sharp.pixelplumbing.com/api-output
imageFormats: {
// Uncomment AVIF for smaller images but longer build times
// avif: 30,
webp: 60,
same: 75,
},
};