[SOLVED] Angular in Production

Just wanted to ask this before I create an issue

On https://docs.angularjs.org/guide/production we can disable debug info to improve performance.

myApp.config(['$compileProvider', function ($compileProvider) {

Is it possible to tie in a check to see whether Meteor is running in --production mode to enable or disable that?


import { Meteor } from 'meteor/meteor'
import myApp from '/imports/myApp'
angular.module(myApp).config($compileProvider => {

Blog post about it


1 Like