Compiled browser version of mongoose.
npm install mongoose-browser
- added deps:
webpack "babel-loader@^8.0.0-beta" @babel/core @babel/preset-env uglifyjs-webpack-plugin
- added config:
webpack.config.js
- moved all dependencies to
devDependencies
- added
.npmignore
so onlypackage.json
andindex.js
get published to npm - added
npm build
script
- clone the repo and
npm install
- build browser bundle (this will replace /index.js)
npm run build