I have simple grunt-browserify config. This configuration works perfectly until I change any JavaScript file, then "watchify" compiles build again. Since that moment build.js fails in browser with exception: Uncaught Error: Cannot find module 'i18n'
Seems like "watchify" ingnores alias option, or Am I doing something wrong ?
browserify: {
client: {
src: ['app/app.js'],
dest: 'app/build.js',
options: {
browserifyOptions: {
debug: true
},
alias: [
'./app/dispatchers/appDispatcher.js:appDispatcher',
'./app/models/i18n.js:i18n'
],
watch: true
}
}
}
Thank you.