mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
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:
@@ -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()}`];
|
||||
|
Reference in New Issue
Block a user