mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 11:48:41 +00:00
Lint webpack.*.js (#1467)
* Lint webpack.*.js * Fix webpack.analyze.js style
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
"bin": "cli.js",
|
"bin": "cli.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run prestart && npm run test:lint && npm run test:flow && npm run test:jest",
|
"test": "npm run prestart && npm run test:lint && npm run test:flow && npm run test:jest",
|
||||||
"test:lint": "eslint katex.js katex.webpack.js cli.js webpack.common.js webpack.config.js webpack.dev.js src static test contrib dockers && stylelint src/katex.less",
|
"test:lint": "eslint katex.js katex.webpack.js cli.js webpack.*.js src static test contrib dockers && stylelint src/katex.less",
|
||||||
"test:flow": "flow",
|
"test:flow": "flow",
|
||||||
"test:jest": "jest",
|
"test:jest": "jest",
|
||||||
"test:jest:watch": "jest --watch",
|
"test:jest:watch": "jest --watch",
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
// @flow
|
// @flow
|
||||||
const { targets, createConfig } = require('./webpack.common');
|
const {targets, createConfig} = require('./webpack.common');
|
||||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||||
|
|
||||||
// dev minify
|
// dev minify
|
||||||
@@ -10,4 +10,3 @@ katexConfig.plugins.push(new BundleAnalyzerPlugin());
|
|||||||
module.exports = [
|
module.exports = [
|
||||||
katexConfig,
|
katexConfig,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user