mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-04 18:58:39 +00:00
Implementing analyze script (#1197)
This commit is contained in:
committed by
Kevin Barabash
parent
20b5a58451
commit
017eb7b91d
597
package-lock.json
generated
597
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -52,6 +52,7 @@
|
||||
"stylelint-config-standard": "^18.0.0",
|
||||
"uglifyjs-webpack-plugin": "^1.1.6",
|
||||
"webpack": "^3.6.0",
|
||||
"webpack-bundle-analyzer": "^2.11.1",
|
||||
"webpack-dev-server": "^2.7.1"
|
||||
},
|
||||
"bin": "cli.js",
|
||||
@@ -69,6 +70,7 @@
|
||||
"clean-install": "npm run clean && npm i",
|
||||
"prestart": "node check-node-version.js && check-dependencies && cd src && node unicodeMake.js >unicodeSymbols.js",
|
||||
"start": "webpack-dev-server --hot --config webpack.dev.js",
|
||||
"analyze": "webpack --config webpack.analyze.js",
|
||||
"build": "npm run prestart && rimraf build/* && webpack",
|
||||
"watch": "npm run build -- --watch",
|
||||
"dist": "npm test && npm run build && npm run dist:copy && npm run dist:zip && npm run dist:dist",
|
||||
|
13
webpack.analyze.js
Normal file
13
webpack.analyze.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// @flow
|
||||
const { targets, createConfig } = require('./webpack.common');
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
|
||||
// dev minify
|
||||
const katexConfig = createConfig(targets.shift(), false, false);
|
||||
|
||||
katexConfig.plugins.push(new BundleAnalyzerPlugin());
|
||||
|
||||
module.exports = [
|
||||
katexConfig,
|
||||
];
|
||||
|
Reference in New Issue
Block a user