skill-assessment-app/vendor/assets/foundation-emails/docs/pages/zurb-stack.md

17 lines
2.7 KiB
Markdown
Raw Normal View History

---
title: ZURB Stack
descripiton: The ZURB email stack is a boilerplate that gives you everything you need to develop and test HTML emails.
---
Email and web development can get complicated fast. Weve introduced the ZURB Stack which helps you get started faster and lets you do more - without having to spend time finding the right tool for the job. The ZURB Stack includes:
- **Gulp.** This is our task runner of choice for Foundation. Gulp lets us queue up tasks to execute. This lets us do cool things like inlining automagically updating your browser. Its what the Stack is built on. [Find out more about Gulp](http://gulpjs.com/).
- **Sass.** We use Libsass as our CSS preprocessor of choice. If youre not familiar with Sass, it lets you use variables, nesting, and mixins (to name a few). [Learn more about Sass](http://sass-lang.com/).
- **Inlining.** One of the biggest headaches and time-sucks used to be inlining your HTML email. Well, no more! Were using gulp-inline to to scan your CSS file and and automatically inject your CSS when youre ready. Just run `npm run build` in your project when youre ready to inline.
- **Build Options.** By default the inliner works without removing whitespaces and inlining for you, you have to change your settings in the inliner function (`function inliner(css)`) on your gulpfile.babel.js which is the root of your project. To change these settings go and update this part of the function as you wish: ``` .pipe($.htmlmin, { collapseWhitespace: true, minifyCSS: true }); ```.
- **Panini.** This is our flat file generator for Foundation. Just like its real-world counterpart, it takes a set of ingredients and flattens them into one delicious item. This lets you separate things like the header and footer content into partials, letting you focus on your code when youre building. Its built off of Handlebars, which lets you keep things super organized with partial files and repeatable sections. Checkout our [Panini Repo](https://github.com/zurb/panini).
- **BrowserSync.** BrowserSync is awesome. Its the specific tool in our ZURB Stack that lets you see your code changes in the browser in real-time. Just save your code and watch the magic happen in your browser. [Learn more about BrowserSync](https://www.browsersync.io/).
- **Image Compression.** Finally, weve added gulp-imagemin which intelligently reduces the file-size of your png, jpeg, gif, and svg images. This lets your emails load at lightning speeds! [Check out the gulp-imagemin repo](https://github.com/sindresorhus/gulp-imagemin).
The ZURB Stack is just a starting place that lets you do all of the things mentioned above! You can totally rip out or add to the ZURB Stacks gulp file to make your perfect email environment.