Skip to content

Integration of Sapper (svelte.js) with Tailwind CSS and minimal support for IE

Notifications You must be signed in to change notification settings

antoncom/sapper-tailwind-with-polyfill-for-ie

 
 

Repository files navigation

Sapper and Tailwind Template (+ IE minimlal support)

Boilerplate template for Sappert + Tailwind with some minimal support of IE

npm install # or yarn!
npm run watch:tailwind # in a separate terminal window
npm run dev # in a separate terminal window

Open up localhost:3000 and start clicking around.

Thanks

Inspired by:

IE minimal support

As Sapper doesn't support legacy browsers, like IE, the main goal of that minimal support is to provide good-looking "static" website for that users who use IE.

To achieve this the following changes were done:

  1. Polifill.io integration
  2. shimport@ hot fix was applied. Just one line was added to shimport@1.0.1 see this commit

As a result, there are no any javascript errors when visitors browse Sapper with IE. They can use navigation, provided by Sapper, and see all content which is generated with SSR.

About

Integration of Sapper (svelte.js) with Tailwind CSS and minimal support for IE

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 39.4%
  • CSS 39.0%
  • HTML 21.6%