I have an Angular application with the following simple config.js configuration file:
export default function(app) { app.constant('config', {apiUrl: 'https://localhost:8080'}); };
which is imported by the app.js entry point:
import config from './config'; config(app);
I want me to have another apiUrl when I do the assembly.
What is the easiest way to do this in webpack?
source share