Build for web server production

Hello everyone. Can anyone tell me how to enable production mode on IONIC2?
I read that this mode is activated automatically when the build command is executed. However the application I’m developing will be deployed to a web server, in addition to packaging for mobile devices.

Documented here.

I think it does not work in RC.2. Look at the error messages: