mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-09 04:58:40 +00:00
Screenshotter chdir to KaTeX root directory (#1502)
* Screenshotter chdir to KaTeX root directory Fix #1501. This seems to be required for webpack, specifically `babel-plugin-version-inline`, to run correctly. * lint fix
This commit is contained in:
@@ -17,12 +17,12 @@ const webpackDevServer = require("webpack-dev-server");
|
|||||||
const webpackConfig = require("../../webpack.dev");
|
const webpackConfig = require("../../webpack.dev");
|
||||||
const data = require("../../test/screenshotter/ss_data");
|
const data = require("../../test/screenshotter/ss_data");
|
||||||
|
|
||||||
const dstDir = path.normalize(
|
// Change to KaTeX root directory so that webpack (in particular
|
||||||
path.join(__dirname, "..", "..", "test", "screenshotter", "images"));
|
// babel-plugin-version-inline) runs correctly.
|
||||||
const diffDir = path.normalize(
|
process.chdir(path.join(__dirname, "..", ".."));
|
||||||
path.join(__dirname, "..", "..", "test", "screenshotter", "diff"));
|
const dstDir = path.normalize(path.join("test", "screenshotter", "images"));
|
||||||
const newDir = path.normalize(
|
const diffDir = path.normalize(path.join("test", "screenshotter", "diff"));
|
||||||
path.join(__dirname, "..", "..", "test", "screenshotter", "new"));
|
const newDir = path.normalize(path.join("test", "screenshotter", "new"));
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// Process command line arguments
|
// Process command line arguments
|
||||||
|
Reference in New Issue
Block a user