Giter Site home page Giter Site logo

webpack-wasm's Introduction

webpack-wasm

Build Status

Webpack + HMR + Babel + WASM(Rust cdylib)

This is a fresh and up-to-date wasm-pack repository using Webpack 5 + HMR and Bebel plugin to build a classic package for WEB MDN API developers and beyond.

Overall, the official repository was supposed to be updated by the wasm-pack developers, but unfortunately now you are here. Well, like a typical American from Silicon Valley, I can add that I spent 3 days for 8 hours on this repository and it's posted absolutely for free. That's about how much time I saved for you. I'm sure this repository will serve as a foundation for many new projects, including my projects.

I'm also raising funds to create and maintain a protocol for my new ecosystem for use in WEB 4.0 networks with a decentralized node infrastructure.

Metamask wallet ETH, BNB, MATIC, AVAX: 0x31645180e05c4721b32F48B3e9e1437dc1A6455A

To quickly create a new application using npx:

npx degit ITC-LittlePrince/webpack-wasm.git my-new-app-name

Don't forget to change my-new-app-name to the name of your project.

Usage on Windows/Linux:

To run during development

npm i
npm run start-windows

or

npm i
npm run start-linux

To run during project deployment

npm i
npm run build-windows

or

npm i
npm run build-linux

Project directory structure

Directory Functional belonging
/js/ Directory for development in JavaScript
/js/bin Directory for executable files
/js/lib Directory for libraries that store interfaces and class objects
/js/static Directory for package media files
/wasm/ Directory for development in Rust
/wasm/src Directory for writing structures, interfaces, and functions using [#wasm-bindgen]

A little bit about the problems I faced when creating the repository

Note: --openssl-legacy-provider for Node >=v19. Popular error when running. Probably can be removed in the future or in earlier versions of Node.

Additional links to WASM documentation:

webpack-wasm's People

Contributors

itc-littleprince avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.