So this is my task:
gulp.task('prod', function() {
browserify({entries: [
'resources/assets/js/app.js'
]})
.transform("babelify")
.transform(envify({
NODE_ENV: 'production'
}))
.bundle()
.pipe(source('all.js'))
.pipe(buffer())
.pipe(sourcemaps.init({loadMaps: true}))
.pipe(uglify())
.on('error', gutil.log)
.pipe(gulp.dest('public/js/'));
});
yet the console still sais:
all.js:30 Waing: It looks like you're using a minified copy of the development build of React. When deploying React apps to production, make sure to use the production build which skips development waings and is faster. See [url here that stack doesn't like] for more details.
So I am confused. Whats the deal?
