dongyuwei / js-module-showcase

js module demo code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

install npm packages

npm install --registry=https://registry.npm.taobao.org

browserify/watchify

./node_modules/.bin/watchify tests/input/entry.js -o tests/output/browserified/entry.js -v

webpack

./node_modules/.bin/webpack --watch

webpack-dev-server

./node_modules/.bin/webpack-dev-server --content-base tests/output/webpack/ --hot --inline --port 8082 then visite the magic html page for entry_bundled.js http://127.0.0.1:8082/assets/entry_bundled

es2015 and rollup

./node_modules/.bin/rollup -f es tests/input/es2015/main.js -o tests/output/es2015/main.js

About

js module demo code


Languages

Language:JavaScript 99.1%Language:CSS 0.9%