/snowpack

📦✨ Build web applications with less tooling and 10x faster iteration. No bundler required.

Primary LanguageJavaScriptMIT LicenseMIT

Logo

Snowpack
Build web applications with less tooling and 10x faster iteration. No bundler required.

npm install --save-dev snowpack
  1. Instead of bundling on every change, just run Snowpack once right after npm install.
  2. Snowpack re-installs your dependencies as single JS files to a new web_modules/ directory.
    ↣ Snowpack never touches your source code.
  3. Build your app, import those dependencies via an ESM import, and then run it all in the browser.
  4. Skip the bundle step and see your changes reflected in the browser immediately after hitting save.
  5. Keep using your favorite web frameworks and build tools! Babel & TypeScript supported.

💁 More info at the official Snowpack website ➞

Examples

🆕 Check out snowpack-init! Instantly bootstrap a starter app with Snowpack + Preact, Lit-HTML, TypeScript, and more.

Contributors Welcome!

Interested in contributing? We'd love your help! Our issue tracker is always organized with high-proirity bugs, feature requests, and "help wanted!"/"good first issue" items. For other threads, check out our Package Community for general package troubleshooting and discussions.

# Local Setup
git clone ${REPO}
npm install
# Build after changes
npm run build
# Run the built package directly by path, in some sibling project
./pkg/dist-node/index.bin.js 
# Or, link the built package to run via CLI in any directory
cd pkg && npm link
snowpack
# Run your tests
npm test