From 862982a69deeacb59b180cafd04d580c3ab2ec8c Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 17 Dec 2019 10:01:46 +0100 Subject: [PATCH] Added back revision date docs --- mkdocs.yml | 9 +++++++-- webpack.config.ts | 23 ++++++++++++++++++++++- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/mkdocs.yml b/mkdocs.yml index 4ae4b0ecf..425fcdc02 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -62,8 +62,8 @@ theme: # Plugins plugins: - search - - minify: - minify_html: true + # - minify: + # minify_html: true # Customization extra: @@ -133,3 +133,8 @@ nav: google_analytics: - !!python/object/apply:os.getenv ["GOOGLE_ANALYTICS_KEY"] - auto + +extra_css: + - test.css +extra_javascript: + - test.js diff --git a/webpack.config.ts b/webpack.config.ts index 016d74bbe..39cebd796 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -21,6 +21,7 @@ */ import * as path from "path" +// import { Options } from "ts-loader" import { Configuration } from "webpack" /* ---------------------------------------------------------------------------- @@ -64,6 +65,26 @@ export default (_env: never, args: Configuration) => { } ], exclude: /\/node_modules\// + }, + + { + test: /\worker\/(.*?)\.ts$/, + use: [ + { loader: "worker-loader", options: { + inline: true, fallback: false } }, + { + loader: "ts-loader", + options: { + transpileOnly: true, + compilerOptions: { + module: "esnext", + noUnusedLocals: args.mode === "production", + noUnusedParameters: args.mode === "production", // TODO: do not duplicate + removeComments: false + } + } + } + ] } ] }, @@ -84,7 +105,7 @@ export default (_env: never, args: Configuration) => { extensions: [".ts", ".tsx", ".js", ".json"] }, - /* Sourcemaps */ + /* Source maps */ devtool: "source-map" } }