I’ve been absent for a while – sometimes it’s difficult to find time for blogging even when I want it. Anyway… here’s the last post in the introductory series of posts that explain my NAV TechDays 2019 demos. In this code example, I explain the difference between typical development and production build configurations, and I show how to configure gulp accordingly.
To check the code example, and to read the detailed explanations of it, jump over to https://github.com/vjekob/supercharged_01/tree/08-gulp-build-prod
Typically, you’ll want a development build that’s optimized for development and debugging, and a production build that’s optimized for run-time and performance.
Luckily, it’s very easy to configure gulp to do this for you. And that’s what today’s code example illustrates. You’ll create two separate tasks. Each of these produces a bundle that targets a different need.
Happy coding, and let me know if you find this series useful.