Skip to content

Commit a671360

Browse files
committed
VS 1.2.0
1 parent b85b57c commit a671360

File tree

9 files changed

+5904
-15543
lines changed

9 files changed

+5904
-15543
lines changed

_layouts/default.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,23 @@
1717
{% include footer.html %}
1818
{% endif %}
1919

20+
<script id="__bs_script__">//<![CDATA[
21+
(function() {
22+
try {
23+
var script = document.createElement('script');
24+
if ('async') {
25+
script.async = true;
26+
}
27+
script.src = 'http://HOST:3000/browser-sync/browser-sync-client.js?v=2.29.3'.replace("HOST", location.hostname);
28+
if (document.body) {
29+
document.body.appendChild(script);
30+
} else if (document.head) {
31+
document.head.appendChild(script);
32+
}
33+
} catch (e) {
34+
console.error("Browsersync: could not append script tag", e);
35+
}
36+
})()
37+
//]]></script>
2038
</body>
2139
</html>

bs-config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
proxy: '127.0.0.1:4000',
3+
files: '_site/**/*', // Watch all files in the _site directory
4+
server: {
5+
baseDir: '_site', // Serve files from the _site directory
6+
},
7+
};

0 commit comments

Comments
 (0)