Everything is build to compile down to static assets. This is not a JS web app. We're just leveraging Node and some build tools to create the static assets that will be served.
- BrowserSync with CSS Streaming
- Webpack Modules Bundling
- Babel Transpiling es2015+ to es5
- PostCSS with some extra goodies
- SVG Sprite generation (not like old-school image sprites)
Note: While instruction are written with yarn
you can also use the npm
equivalents. See: https://yarnpkg.com/lang/en/docs/migrating-from-npm/
- Use
yarn install
to install npm packages yarn build
to run all tasksyarn start
to actively developer with livereload & css injection via BrowserSyncyarn prod
to run all tasks with production ready files (minified, etc)
- Using Nunjunks for Node pre-complied template
PostCSS support with a few additions, see postcss.config.css
- Future CSS specs Stage 1
- Normalize support based on browserlist (set in package.json)
- Sass-like nesting
- Sass-like inline comments (e.g.
//
vs/* */
) - Critical inline Support
- es2015+ support
- Module Bundling
- Ramda for tiny utility functions
- SVGO for sanitizing
- SVG Sprite creation from SVG set.
<!-- Example of using icon from SVG Sprite-->
<svg role="img">
<use xlink:href="#icon-user"></use>
</svg>