Skip to content

Commit

Permalink
build process improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
bstavroulakis committed Feb 3, 2018
1 parent c6ac9c9 commit 75e5dff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/build.serviceWorker.js
Expand Up @@ -109,6 +109,10 @@ const cleanIndex = () => {
'<link href="/assets/styles.css" rel="stylesheet">',
""
);
data = data.replace(
'<link media="all" rel="stylesheet" href="/assets/styles.css" media="all">',
""
);
data = data.replace(/type="text\/javascript"/gim, 'defer type="text/javascript"');
data = data.replace(/rel="stylesheet"/gim, 'media="all" rel="stylesheet"');
fs.writeFile((dirPath + "/index.html"), data, 'utf8');
Expand Down

0 comments on commit 75e5dff

Please sign in to comment.