Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

👩‍🚀 The tiny all-in-one development tool for modern web apps.

License

NotificationsYou must be signed in to change notification settings

preactjs/wmr

Repository files navigation

Warning

WMR is unfortunately no longer maintained. In its place, we'd recommendVite with@preactjs/preset-vite. It offers many of the same features (like the prerendering API) but is much more robust and up to date. Thanks to all contributors and users over the years!

wmr logo

npminstall sizeOpenCollective BackersOpenCollective Sponsors

The tiny all-in-one development tool for modern web apps, in a single 2mb file with no dependencies.

All the features you'd expect and more, from development to production:

🔨   No entry points or pages to configure - just HTML files with<script type=module>
🦦   Safelyimport "packages" from npmwithout installation
📦   Smart bundling and caching for npm dependencies
↻   Hot reloading for modules, Preact components and CSS
⚡️   Lightning-fast JSX support that you can debug in the browser
💄   Import CSS files andCSS Modules (*.module.css)
🔩   Out-of-the-box support forTypeScript
📂   Static file serving with hot reloading of CSS and images
🗜   Highly optimized Rollup-based production output (wmr build)
📑   Crawls and pre-renders your app's pages to static HTML at build time
🏎   Built-in HTTP2 in dev and prod (wmr serve --http2)
🔧   SupportsRollup plugins, even in development where Rollup isn't used

Quickstart(recommended)

Create a new project in seconds usingcreate-wmr:

npm init wmr your-project-name

or

yarn create wmr your-project-name

illustration of installation to build for wmr

💁 If you'd like ESLint to be set up for you, add--eslint to the command.Note: this will use 150mb of disk space.

Check out the docs to learn more

Packages

PackageDescriptionVersion
wmrTiny all-in-one development tool for modern web appswmr npm
create-wmrCreate a new WMR project in secondscreate-wmr npm
@wmrjs/directory-importImport a directory's files as an Array@wmrjs/directory-import npm
@wmrjs/nomoduleGenerate legacy fallback bundles for older browsers@wmrjs/nomodule npm
@wmrjs/service-workerBundle service workers@wmrjs/service-worker npm
preact-isoOptimal code-splitting, hydration and routing for Preactpreact-iso npm

Contributing

git clone git@github.com:preactjs/wmr.gitcd wmryarn# run the demo (no compile)yarn demo serve# build and serve the demo for prodyarn demo build:prod&& yarn demo serve:prod# build the single-file CLI:yarn workspace wmr build

Adding a changeset

Don't forget to also include a changeset, by running this command at the root of the project:

yarn changeset

This will take you through a process of selecting the changed packages, the version updates and a description of the change. Afterwards,changesets, will generate a.md file inside a.changeset directory. Please commit that file as well.

After all that, you are good to go. 👍

About

👩‍🚀 The tiny all-in-one development tool for modern web apps.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp