Skip to content

Commit

Permalink
Improve build speed
Browse files Browse the repository at this point in the history
Fixes #132
  • Loading branch information
marcamos committed Nov 16, 2022
1 parent 4d654ef commit 97f0f0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ module.exports = function(eleventyConfig) {
eleventyConfig.setUseGitIgnore(false);
eleventyConfig.addWatchTarget('./src/css/tailwind.css');
eleventyConfig.addPassthroughCopy('./src/img');
eleventyConfig.on('eleventy.after', async () => {
console.log('Building Tailwind…');
console.log(execSync('npm run build:tailwind').toString());
});

return {
htmlTemplateEngine: "njk",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build:tailwind": "npx tailwindcss -i src/css/tailwind.css -o public/css/styles.css --minify",
"build:eleventy": "ELEVENTY_PRODUCTION=true npx @11ty/eleventy",
"dev": "npm-run-all clean --parallel dev:*",
"build": "NODE_ENV=production npm-run-all clean build:eleventy"
"build": "NODE_ENV=production npm-run-all clean build:eleventy build:tailwind"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 97f0f0f

Please sign in to comment.