How work with RequireJS?
Closed this issue · 1 comments
MostafaSayyedi commented
I want use this image-hash with RequireJS.
in my html code:
and in my config.js:
const { imageHash } = require('image-hash');
requirejs.config({
baseUrl: 'node_modules/image-hash/lib/',
paths: {
imageHash: 'node_modules/image-hash/lib/imageHash.js'
}
})
but its not working.
danm commented
image-hash will only work with NodeJS and will not work in the browser.