Skip to content

Commit 08d9a85

Browse files
feat: review sass build with 11ty
1 parent 509c271 commit 08d9a85

File tree

16 files changed

+1327
-611
lines changed

16 files changed

+1327
-611
lines changed

.eleventy.js

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
2-
const eleventyDartSassPlugin = require("eleventy-plugin-dart-sass");
3-
const path = require('path');
4-
5-
const helpers = require('./src/_data/helpers');
62
const markdownConfig = require('./src/11ty/utils/markdown');
73
const browserSyncConfig = require('./src/11ty/utils/browsersync');
84
const UserConfig = require("@11ty/eleventy/src/UserConfig");
@@ -13,29 +9,12 @@ const filtersMethods = Object.entries(filters);
139
const transforms = require('./src/11ty/transforms');
1410
const transformsMethods = Object.entries(transforms);
1511

16-
const sassConfig = {
17-
includePaths: ["**/*.{scss,sass}", "!node_modules/**"],
18-
sassIndexFile: 'main.scss',
19-
watchSass: true,
20-
sassLocation: path.normalize(
21-
path.join(__dirname, "src/_includes/assets/scss/")
22-
),
23-
outDir: path.normalize(
24-
path.join(__dirname, 'dist/')
25-
),
26-
outPath: "/assets/css/",
27-
domainName: helpers.url(),
28-
outFileName: 'main.css',
29-
outputStyle: 'compressed'
30-
};
31-
3212
const passthroughItems = [
3313
'src/_redirects',
3414
{
3515
"src/favicon.ico": "/favicon.ico",
3616
"src/static/img": "/static/img",
3717
"src/static/CV.pdf": "/static/CV.pdf",
38-
"src/_includes/assets/css": "/assets/css",
3918
"src/_includes/assets/js": "/assets/js"
4019
}
4120
];
@@ -51,7 +30,6 @@ module.exports = function (eleventyConfig) {
5130
});
5231

5332
eleventyConfig.addPlugin(eleventyNavigationPlugin);
54-
eleventyConfig.addPlugin(eleventyDartSassPlugin, sassConfig);
5533

5634
passthroughItems.forEach(item => {
5735
eleventyConfig.addPassthroughCopy(item);
@@ -66,7 +44,7 @@ module.exports = function (eleventyConfig) {
6644
});
6745

6846
return {
69-
templateFormats: ["md", "njk", "html"],
47+
templateFormats: ["md", "njk", "html", "11ty.js"],
7048
pathPrefix: "/",
7149
passthroughFileCopy: true,
7250
markdownTemplateEngine: "njk",

0 commit comments

Comments
 (0)