Skip to content

Commit 6e8387d

Browse files
committed
Fix main URL version - move command line set before version update
1 parent f2b0e3f commit 6e8387d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

gulpfile.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ var dist = "./dist",
1616
config = require("./build/config.json");
1717

1818
// Command line overrides:
19+
if (util.env["ignite-ui"]) {
20+
// Optional override for the Ignite UI source location, can be passed as --ignite-ui "http://<ignite-ui root>"
21+
config.patterns["%%ignite-ui%%"] = util.env["ignite-ui"];
22+
}
1923
if (version) {
2024
config.patterns["%%ignite-ui%%"] = config.patterns["%%ignite-ui%%"].replace("latest", "20" + version + "/latest");
2125
} else {
2226
version = "latest";
2327
}
24-
if (util.env["ignite-ui"]) {
25-
// Optional override for the Ignite UI source location, can be passed as --ignite-ui "http://<ignite-ui root>"
26-
config.patterns["%%ignite-ui%%"] = util.env["ignite-ui"];
27-
}
2828
if (util.env["live-url"]) {
2929
// Optional override for the live demo URL (without trailing slash). Warning: might be case-sensitive
3030
config.liveUrl = util.env["live-url"].replace(/\/$/, "");

0 commit comments

Comments
 (0)