mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
Output port number of server, and lint fixes (#980)
This commit is contained in:
committed by
Ashish Myles
parent
69aff05024
commit
fd2544f8f9
@@ -55,7 +55,7 @@
|
||||
},
|
||||
"bin": "cli.js",
|
||||
"scripts": {
|
||||
"lint": "eslint katex.js server.js cli.js src test contrib dockers && stylelint static/fonts.less static/katex.less",
|
||||
"lint": "eslint katex.js server.js cli.js webpack.config.js webpackDevServer.js src test contrib dockers && stylelint static/fonts.less static/katex.less",
|
||||
"flow": "flow",
|
||||
"jest": "jest",
|
||||
"coverage": "jest --coverage",
|
||||
|
@@ -1,3 +1,5 @@
|
||||
/* eslint no-console:0 */
|
||||
|
||||
const WebpackDevServer = require("webpack-dev-server");
|
||||
const webpack = require("webpack");
|
||||
const webpackConfig = require("./webpack.config.js");
|
||||
@@ -10,3 +12,4 @@ const compiler = webpack(webpackConfig.compilerConfig);
|
||||
const server = new WebpackDevServer(compiler, webpackConfig.devServerConfig);
|
||||
|
||||
server.listen(PORT);
|
||||
console.log(`Serving on http://localhost:${PORT}/ ...`);
|
||||
|
Reference in New Issue
Block a user