https://github.com/itrooz/webpack-node-browser
https://github.com/itrooz/webpack-node-browser
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/itrooz/webpack-node-browser
- Owner: iTrooz
- License: cc0-1.0
- Created: 2022-12-29T19:19:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-20T15:48:27.000Z (about 2 years ago)
- Last Synced: 2025-01-25T16:28:48.704Z (4 months ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## What
Hello world webpack project that works with nodejs and the browser
From https://dev.to/riversun/recipes-on-how-to-create-a-library-that-supports-both-browser-and-node-js-201m#(1)
but it wasn't working for me, so I tweaked some things## How to use
- clone repository
- `npx webpack`- `node test.js` to test nodejs
- open "test.html" in your browser to test the browser