Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 1.12 KB

README.md

File metadata and controls

31 lines (16 loc) · 1.12 KB

IDMX 11ty Sass Starter

The set of development scripts in this starter is configured to watch and compile a simple Sass structure using 11ty.

The code is located in the src folder and the page is created in the public folder.

The settings.json in the .vscode folder sets the LiveServer configuration to serve from the public folder and can be used to serve the built page.

The build process includes minifiying and autoprefixing of styles via the postbuild script, which runs automatically after a build.

Installation

npm install

Run this command once to install the needed node modules.

Development Scripts

npm start

This script runs 11ty with hot reload and served at the url localhost:8080. It will reload whenever there are HTML or Sass changes.

npm run build

This script does a production build and includes minified, autoprefixed CSS.

Use this as the "Publish command" if needed by hosting services such as Netlify.

Resources

The starter was inspired by 11ty Sass Skeleton by @5t3ph