1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-23 23:21:00 +01:00

Moved manifest.json up one layer

This commit is contained in:
squidfunk 2019-12-10 16:03:11 +01:00
parent 182ded9e7c
commit 633bcace14
3 changed files with 4 additions and 3 deletions

2
.gitignore vendored
View File

@ -31,8 +31,8 @@ venv
# Files generated by build
/build
/material/manifest.json
/MANIFEST
/manifest.json
/site
# Distribution files

View File

@ -75,7 +75,7 @@
{% if font != false %}
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family={{
font.text | replace(' ', '+') + ':300,400,400i,700|' +
font.text | replace(' ', '+') + ':300,400,400i,700%7C' +
font.code | replace(' ', '+')
}}&display=fallback">
<style>body,input{font-family:"{{ font.text }}","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"{{ font.code }}","Courier New",Courier,monospace}</style>

View File

@ -306,6 +306,7 @@ module.exports = (_env, args) => { // eslint-disable-line complexity
/* Write manifest */
new ManifestPlugin({
fileName: "../manifest.json",
/* This is an ugly workaround for the fact that the manifest plugin
doesn't handle multiple chunks. See http://bit.ly/2BbfER9 */
@ -318,7 +319,7 @@ module.exports = (_env, args) => { // eslint-disable-line complexity
/* Apply manifest */
new EventHooksPlugin({
afterEmit: new CallbackTask((compilation, cb) => {
const manifest = require(path.resolve("material/manifest.json"))
const manifest = require(path.resolve("manifest.json"))
Object.keys(compilation.assets).forEach(name => {
if (name.match(/\.html/)) {
const asset = compilation.assets[name]