Skip to content

Commit 2c571d3

Browse files
committed
removes the prod styles link tag in devBuild
1 parent 7ee3a9a commit 2c571d3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

html_test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ describe("documentjs/lib/generators/html", function(){
4747
}
4848
return readFile(path.join(__dirname, "test", "tmp","index.html")).then(function(source){
4949
if(/node_modules\/steal/.test(source.toString())) {
50-
50+
if(/bit-docs-site\/static.css/.test(source.toString())) {
51+
throw new Error("still loading production static release");
52+
}
5153
} else {
52-
throw new Error("no node_modules/steal")
54+
throw new Error("no node_modules/steal");
5355
}
5456
})
5557
});

site/default/templates/layout.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<title>{{getTitle}}</title>
8-
{{^devBuild}}
8+
{{#unless (siteConfig "devBuild")}}
99
<link rel="stylesheet" type="text/css" href="{{pathToDest}}/static/bundles/bit-docs-site/static.css">
10-
{{/devBuild}}
10+
{{/unless}}
1111
</head>
1212

1313
<body>

0 commit comments

Comments
 (0)