Skip to content

Instantly share code, notes, and snippets.

@GabrielUlici
Created October 8, 2017 00:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save GabrielUlici/a20b18e764055c1eb0fb6ff839fc7462 to your computer and use it in GitHub Desktop.
Save GabrielUlici/a20b18e764055c1eb0fb6ff839fc7462 to your computer and use it in GitHub Desktop.
ionic-angular@3.7.0 env fix
var path = require('path');
var useDefaultConfig = require('@ionic/app-scripts/config/webpack.config.js');
var procEnv = process.env.IONIC_ENV;
module.exports = function () {
useDefaultConfig[procEnv].resolve.alias = {
"@app/env": path.resolve('./src/environments/environment' + (process.env.IONIC_ENV === 'prod' ? '' : '.' + process.env.IONIC_ENV) + '.ts')
};
return useDefaultConfig;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment