mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added back revision date docs
This commit is contained in:
parent
d439142f0f
commit
862982a69d
@ -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
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user