Skip to content

Commit

Permalink
Remove gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissy-dev committed Jun 4, 2019
1 parent a7d6fa3 commit d3ad750
Show file tree
Hide file tree
Showing 14 changed files with 40,285 additions and 9,062 deletions.
18 changes: 1 addition & 17 deletions .eleventy.js
@@ -1,27 +1,11 @@
const htmlmin = require("html-minifier");
const CleanCSS = require("clean-css");

module.exports = function(eleventyConfig) {
// Folders to copy to build dir (See. 1.1)
eleventyConfig.addPassthroughCopy("src/assets/images");
eleventyConfig.addPassthroughCopy("src/assets/static");

// Minify HTML output
eleventyConfig.addTransform("htmlmin", function(content, outputPath) {
if (outputPath.endsWith(".html")) {
let minified = htmlmin.minify(content, {
useShortDoctype: true,
removeComments: true,
collapseWhitespace: true
});
return minified;
}
return content;
});

// Clean CSS Filter
eleventyConfig.addFilter("cssmin", function(code) {
return new CleanCSS({}).minify(code).styles;
return code; //new CleanCSS({}).minify(code).styles;
});

return {
Expand Down
83 changes: 0 additions & 83 deletions gulpfile.js

This file was deleted.

0 comments on commit d3ad750

Please sign in to comment.