I am having trouble using grunt-browserify and remapify with watch: true. It bundles just fine at first, but after a file is changed I get a Cannot find module error for every require that uses aliasMapping in that file.
I found a temporary workaround by just having the browserify task run from a cold start every time files are changed, but this is very time consuming (6-10 sec).
I am having trouble using grunt-browserify and remapify with
watch: true
. It bundles just fine at first, but after a file is changed I get aCannot find module
error for everyrequire
that uses aliasMapping in that file.I found a temporary workaround by just having the browserify task run from a cold start every time files are changed, but this is very time consuming (6-10 sec).
Here is my grunt-borwserify + remapify setup :