Skip to content

Commit 40aa61d

Browse files
committed
fix(gen): script paths use forward slashes
Using path.join creates backslashes. Script src uses forward slashes Fixes #410
1 parent 4053f11 commit 40aa61d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: script-base.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Generator.prototype.addScriptToIndex = function (script) {
9797
file: fullPath,
9898
needle: '<!-- endbuild -->',
9999
splicable: [
100-
'<script src="scripts/' + script + '.js"></script>'
100+
'<script src="scripts/' + script.replace('\\', '/') + '.js"></script>'
101101
]
102102
});
103103
} catch (e) {

0 commit comments

Comments
 (0)