Changing 'locationStrategy' option in production build

Hi,
I’m currently creating a PWA uses Ionic 3, and I want to set ionic option locationStrategy as path in production build.
Because I would like to use ionic serve and paths with # in development, but use no # path in production. Do you know any good idea to do this?

I already tried: Using webpack.DefinePlugin and replacing const value in each builds. It happens error encountered resolving symbol values statically. in Angular build phase.