diff --git a/index.js b/index.js index 2b92b53..3c60624 100644 --- a/index.js +++ b/index.js @@ -153,7 +153,7 @@ module.exports = function(options) { if (line) contents.template.push(line.trim()); }); - contents.template = contents.template.join("").toString().replace(/'/g, "'"); + contents.template = contents.template.join("").toString().replace(/'/g, "\\'"); } if (type === "script") { @@ -231,4 +231,4 @@ module.exports = function(options) { callback(null, file); }); -} \ No newline at end of file +}