Add KaTeX version to stylesheet and troubleshooting guide (#1893)

* Add KaTeX version to stylesheet

* Add troubleshooting guide

* Update katex.less

[skip ci]
This commit is contained in:
ylemkimon
2019-04-18 22:10:19 +09:00
committed by GitHub
parent e7193227f6
commit f948947736
4 changed files with 57 additions and 1 deletions

View File

@@ -3,6 +3,8 @@ const path = require('path');
const TerserPlugin = require('terser-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const {version} = require("./package.json");
const browserslist = require('browserslist')();
const caniuse = require('caniuse-lite');
@@ -59,8 +61,11 @@ function createConfig(target /*: Target */, dev /*: boolean */,
});
}
const lessOptions = {modifyVars: {
version: `"${version}"`,
}};
// use only necessary fonts, overridable by environment variables
const lessOptions = {modifyVars: {}};
let isCovered = false;
for (const font of fonts) {
const override = process.env[`USE_${font.toUpperCase()}`];