Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/lib/content-transformer-plugin.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ContentTransformerPlugin {
context: "."
};
const compilation = {
fileDependencies: [],
fileDependencies: new Set([]),
fileTimestamps: {},
assets: {}
};
Expand All @@ -69,7 +69,7 @@ class ContentTransformerPlugin {
file.path = path.join(compiler.context, file.filename);

// Add the file to the dependency watch list
compilation.fileDependencies.push(file.path);
compilation.fileDependencies.add(file.path);

// Work out whether this file has been modified.
const currentModified = compilation.fileTimestamps[file.path];
Expand Down
2 changes: 0 additions & 2 deletions frontend/tasks/pages.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ function generateStaticPage(prepareForClient, pageName, pageParam, component, {

const bodyComponent = <div id="static-root">
<NoScript />
{prepareForClient ? <script src="/static/app/vendor.js"></script> : null}
</div>;

return makeStaticString(prepareForClient, pageName, pageParam, headComponent, bodyComponent, component);
Expand All @@ -250,7 +249,6 @@ function generateStaticPageFromMarkdown(pageName, pageParam, markdown, params) {
</LayoutWrapper>

<Footer />
<script src="/static/app/vendor.js"></script>
<script src="/static/scripts/locale.js"></script>
<script src="/static/scripts/legal.js"></script>
</div>;
Expand Down
Loading