Skip to content

Instantly share code, notes, and snippets.

Avatar

Gabe GabrielUlici

View GitHub Profile
@GabrielUlici
GabrielUlici / webpack.config.js
Created Oct 8, 2017
ionic-angular@3.7.0 env fix
View webpack.config.js
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')
};