A starter config for Eleventy with pipelines for Typescript and PostCSS.
- Typescript bundling via swc
- Transforming CSS imports to a single file
- Autoprefixing via postcss-preset-env
- Minifying CSS via cssnano
- Minifying HTML via html-minifier
- Shortcode for generating IMG and PICTURE elements via eleventy-img plugin
- No SASS compilation
- No linting or typechecking
- No CSS framework
- No JavaScript framework
- No test framework
- No environment variables
- No template language assumptions
- No built-in deployment targets
git clone https://github.com/cbergen/11ty-nostrils.git my-project
cd my-project
npm install
Changes to Eleventy content, Typescript/JavaScript, and CSS all trigger automatic updates in the browser.
npm run dev
The final build is output to the "build" directory.
npm run build