diff --git a/packages/browser-sync/lib/config.js b/packages/browser-sync/lib/config.js index c3ebbee49..790f8e3b9 100644 --- a/packages/browser-sync/lib/config.js +++ b/packages/browser-sync/lib/config.js @@ -10,11 +10,11 @@ module.exports = { baseDir: path.join(__dirname, "control-panel") }, templates: { - scriptTag: path.join(__dirname, "..", "templates/script-tags.tmpl"), + scriptTag: path.join(__dirname, "..", "templates/script-tags.html"), scriptTagSimple: path.join( __dirname, "..", - "templates/script-tags-simple.tmpl" + "templates/script-tags-simple.html" ), connector: path.join(__dirname, "..", "templates/connector.tmpl") }, diff --git a/packages/browser-sync/templates/script-tags-simple.tmpl b/packages/browser-sync/templates/script-tags-simple.html similarity index 100% rename from packages/browser-sync/templates/script-tags-simple.tmpl rename to packages/browser-sync/templates/script-tags-simple.html diff --git a/packages/browser-sync/templates/script-tags.html b/packages/browser-sync/templates/script-tags.html new file mode 100644 index 000000000..310c804b2 --- /dev/null +++ b/packages/browser-sync/templates/script-tags.html @@ -0,0 +1,16 @@ + diff --git a/packages/browser-sync/templates/script-tags.tmpl b/packages/browser-sync/templates/script-tags.tmpl deleted file mode 100644 index fed9de4e7..000000000 --- a/packages/browser-sync/templates/script-tags.tmpl +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/packages/browser-sync/test/specs/e2e/e2e.options.script.async.js b/packages/browser-sync/test/specs/e2e/e2e.options.script.async.js index fbe06906b..6f2f8c9be 100644 --- a/packages/browser-sync/test/specs/e2e/e2e.options.script.async.js +++ b/packages/browser-sync/test/specs/e2e/e2e.options.script.async.js @@ -21,7 +21,7 @@ describe("E2E script with/without async attribute", function() { } }; browserSync(config, function(err, bs) { - assert.notInclude(bs.options.get("snippet"), "async"); + assert.notInclude(bs.options.get("snippet"), "'async'"); bs.cleanup(); done(); });