mongoose-browser
v5.2.8-pre-2
Published
Mongoose MongoDB ODM Browser
Downloads
80
Maintainers
Readme
mongoose-browser
Compiled browser version of mongoose.
npm install mongoose-browser
Why this exists
What we did
- 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
Building
- clone the repo and
npm install
- build browser bundle (this will replace /index.js)
npm run build