my library config with webpack 3
git clone https://github.com/rizerok/webpack-3-config-library.git .
npm i
npm run build:lib
- build lib source
npm run build:prod
- prepare lib for production and build README.md and .gitignore
npm run build:dev
- build lib source and dev
npm run build:demo
- build dynamic demo with lib dist
npm run watch:dev
- develop lib with devServer
npm run watch:demo
- develop dynamic demo with lib dist and devServer
Just add new directory, like demo1 or demo2, to demo/handled/