Skip to content

Commit ff1dd59

Browse files
authored
Merge pull request #11 from lihawhaw/bugfix-output-file-name
fix: Fixed file name symbol issues
2 parents 51f9b92 + bc93c45 commit ff1dd59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async function removeInlineScripts(directory, log) {
108108
const innerScript = node.children[0].data;
109109
const fullTag = $('script[type="module"]').toString();
110110
//get new filename
111-
const fn = `/script-${hash(innerScript)}}.js`;
111+
const fn = `/script-${hash(innerScript)}.js`;
112112
//remove from orig html file and replace with new script tag
113113
const newHtml = f.toString().replace(fullTag, `<script ${attribs} src="${fn}"></script>`);
114114
writeFileSync(file, newHtml);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sveltekit-adapter-chrome-extension",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/michmich112/sveltekit-adapter-chrome-extension"

0 commit comments

Comments
 (0)