Skip to content

Commit

Permalink
fix up browsify to be reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
GantMan committed May 2, 2019
1 parent 58d57b8 commit 1a17c35
Show file tree
Hide file tree
Showing 5 changed files with 865 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@ node_modules/
dist/
yarn-error.log
.vscode
.DS_Store
1 change: 1 addition & 0 deletions .npmignore
Expand Up @@ -16,3 +16,4 @@ example/
_art/
yarn-error.log
bundle.js
.DS_Store
6 changes: 5 additions & 1 deletion example/minimal_demo/index.html
@@ -1,8 +1,12 @@
<!-- Load TensorFlow.js. This is required -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.0.4"></script>
<!-- Load the NSFWJS library. -->

<!-- Load the NSFWJS library from AWS -->
<script src="https://s3.amazonaws.com/ir_public/nsfwjscdn/bundle.js"></script>

<!-- For testing: Load from local bundle `yarn scriptbundle` -->
<!-- <script src="../../dist/bundle.js"></script> -->

<script>
const nsfwjs = require('nsfwjs')
const img = new Image()
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -29,6 +29,7 @@
"all-contributors-cli": "^6.1.2",
"babel-core": "^6.26.0",
"babel-plugin-transform-runtime": "~6.23.0",
"browserify": "^16.2.3",
"jest": "^24.1.0",
"jpeg-js": "^0.3.4",
"node-fetch": "^2.3.0",
Expand Down

0 comments on commit 1a17c35

Please sign in to comment.