Added back revision date docs

This commit is contained in:
squidfunk 2019-12-17 10:01:46 +01:00
parent d439142f0f
commit 862982a69d
2 changed files with 29 additions and 3 deletions

View File

@ -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

View File

@ -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"
}
}