Skip to content

Commit

Permalink
Merge pull request #1465 from stealjs/window-less
Browse files Browse the repository at this point in the history
Set `less` to be async by default
  • Loading branch information
matthewp authored Oct 3, 2018
2 parents ff4841f + 770142b commit 71d00ce
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,8 @@ addStealExtension(function (loader) {
jsBundlesNameGlob = "bundles/*";
setIfNotPresent(System.paths,cssBundlesNameGlob, "dist/bundles/*css");
setIfNotPresent(System.paths,jsBundlesNameGlob, "dist/bundles/*.js");
var less = System.global.less || (System.global.less = {});
less.async = true;

var configSetter = function(order){
return {
Expand Down
2 changes: 2 additions & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
jsBundlesNameGlob = "bundles/*";
setIfNotPresent(System.paths,cssBundlesNameGlob, "dist/bundles/*css");
setIfNotPresent(System.paths,jsBundlesNameGlob, "dist/bundles/*.js");
var less = System.global.less || (System.global.less = {});
less.async = true;

var configSetter = function(order){
return {
Expand Down
2 changes: 2 additions & 0 deletions steal-with-promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -7849,6 +7849,8 @@ addStealExtension(function (loader) {
jsBundlesNameGlob = "bundles/*";
setIfNotPresent(System.paths,cssBundlesNameGlob, "dist/bundles/*css");
setIfNotPresent(System.paths,jsBundlesNameGlob, "dist/bundles/*.js");
var less = System.global.less || (System.global.less = {});
less.async = true;

var configSetter = function(order){
return {
Expand Down
2 changes: 1 addition & 1 deletion steal-with-promises.production.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions steal.js
Original file line number Diff line number Diff line change
Expand Up @@ -6579,6 +6579,8 @@ addStealExtension(function (loader) {
jsBundlesNameGlob = "bundles/*";
setIfNotPresent(System.paths,cssBundlesNameGlob, "dist/bundles/*css");
setIfNotPresent(System.paths,jsBundlesNameGlob, "dist/bundles/*.js");
var less = System.global.less || (System.global.less = {});
less.async = true;

var configSetter = function(order){
return {
Expand Down
2 changes: 1 addition & 1 deletion steal.production.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions test/steal-with-promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -7849,6 +7849,8 @@ addStealExtension(function (loader) {
jsBundlesNameGlob = "bundles/*";
setIfNotPresent(System.paths,cssBundlesNameGlob, "dist/bundles/*css");
setIfNotPresent(System.paths,jsBundlesNameGlob, "dist/bundles/*.js");
var less = System.global.less || (System.global.less = {});
less.async = true;

var configSetter = function(order){
return {
Expand Down
2 changes: 1 addition & 1 deletion test/steal-with-promises.production.js

Large diffs are not rendered by default.

0 comments on commit 71d00ce

Please sign in to comment.