This commit is contained in:
parent
1ee83916b9
commit
37efcb2075
3 changed files with 13 additions and 13 deletions
|
@ -1,12 +1,10 @@
|
|||
const pluginRev = require("eleventy-plugin-rev");
|
||||
const eleventySass = require("eleventy-sass");
|
||||
const tinyCSS = require('@sardine/eleventy-plugin-tinycss');
|
||||
const tinyHTML = require('@sardine/eleventy-plugin-tinyhtml');
|
||||
const site = require('./src/_data/site.js');
|
||||
|
||||
module.exports = function (eleventyConfig) {
|
||||
eleventyConfig.addPlugin(tinyCSS, {
|
||||
output: `dist/${site.lang}/`
|
||||
});
|
||||
eleventyConfig.addPlugin(pluginRev);
|
||||
eleventyConfig.addPlugin(tinyHTML);
|
||||
eleventyConfig.addPlugin(eleventySass, {
|
||||
sass: {
|
||||
|
@ -20,7 +18,8 @@ module.exports = function (eleventyConfig) {
|
|||
return data.page.filePathStem.replace(/^\/scss\//, "/css/") + ".css";
|
||||
};
|
||||
}
|
||||
}
|
||||
},
|
||||
rev: true
|
||||
});
|
||||
|
||||
eleventyConfig.setUseGitIgnore(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue