hydrogenjs / hydrogen

🎈 Hydrogen. Voted (by me) the world's lightest static-site generator built with TypeScript ❤ It uses 🔥 lit-html inspired templating for super duper performant template generation.
https://hydrogen-js.netlify.app/
MIT License
166 stars 9 forks source link

Add property to the config that allows you to delete the build folder #49

Closed shailen-naidoo closed 4 years ago

shailen-naidoo commented 4 years ago

Summary

Currently, Hydrogen does not delete the dist folder, therefore, it might be a good idea to add a property to hydrogen.config.js so that the dist folder is deleted before each build

Solution

module.exports = {
  build: {
    deleteFolder: true,
  },
}
shailen-naidoo commented 4 years ago

This was added in v0.8.0