I've read all the docs and several solutions here, but I can't seem to get Remapify configured properly in my Grunt-Browserify config.
Here are two few variations I've tried, both resulting in the error "Cannot find module..."
browserify: {
options: {
preBundleCB: function (b) {
b.plugin(remapify, [{
cwd: './dev/js/modules',
src: './**/*.js',
expose: 'modules'
}]);
}
}
}
browserify: {
options: {
preBundleCB: function (b) {
b.plugin(remapify, [{
cwd: __dirname,
src: '.dev/js/modules/**/*.js',
expose: 'modules'
}]);
}
}
}
Does anyone see what I'm doing wrong?
this should work for you
{
cwd: './dev/js/modules',
src: '**/*.js',
expose: 'modules'
}
if expose is an empty string you'll have the same result, very usefull
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments