-
Notifications
You must be signed in to change notification settings - Fork 554
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from infinitered/use_uglify
new bundle method for scripts
- Loading branch information
Showing
5 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]"></script> | ||
|
||
<!-- Load the NSFWJS library from AWS --> | ||
<script src="https://s3.amazonaws.com/ir_public/nsfwjscdn/bundle.js"></script> | ||
<!-- <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> --> | ||
<!-- For testing: Load from local bundle `yarn scriptbundle && yarn minbundle` --> | ||
<script src="../../dist/nsfwjs.min.js"></script> | ||
|
||
<script> | ||
const nsfwjs = require('nsfwjs') | ||
// const nsfwjs = require('nsfwjs') | ||
const img = new Image() | ||
img.crossOrigin = 'anonymous' | ||
// some image here | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// I exist to browserify | ||
module.exports = require('./index') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6360,7 +6360,7 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.2.tgz#105b0f1934119dde543ac8eb71af3a91009efe54" | ||
integrity sha512-lmQ4L+J6mnu3xweP8+rOrUwzmN+MRAj7TgtJtDaXE5PMyX2kCrklhg3rvOsOIfNeAWMQWO2F1GPc1kMD2vLAfw== | ||
|
||
uglify-js@^3.1.4: | ||
uglify-js@^3.1.4, uglify-js@^3.6.0: | ||
version "3.6.0" | ||
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.6.0.tgz#704681345c53a8b2079fb6cec294b05ead242ff5" | ||
integrity sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg== | ||
|