@servicetitan/docs-uikit 27.0.0 → 27.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/startup.mdx +13 -4
- package/package.json +2 -2
package/docs/startup.mdx
CHANGED
|
@@ -309,10 +309,16 @@ By default `startup` configures webpack to minify production bundles conservativ
|
|
|
309
309
|
so that projects gain the benefits of reduced bundle sizes while retaining the highest
|
|
310
310
|
fidelity for source map debugging.
|
|
311
311
|
|
|
312
|
-
Set `minify.js` to `false` to prevent webpack from minifying
|
|
312
|
+
Set `minify.js` or `minify.css` to `false` to prevent webpack from minifying JS or CSS bundles.
|
|
313
313
|
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
Startup uses [TerserWebpackPlugin](https://webpack.js.org/plugins/terser-webpack-plugin) to minify JS bundles
|
|
315
|
+
and uses [CssMinimizerWebpackPlugin](https://webpack.js.org/plugins/css-minimizer-webpack-plugin)
|
|
316
|
+
to minify CSS bundles.
|
|
317
|
+
|
|
318
|
+
To override the default Terser options set `minify.js` to an object containing
|
|
319
|
+
[`terserOptions`](https://webpack.js.org/plugins/terser-webpack-plugin/#terseroptions).
|
|
320
|
+
To override the default CssMinimizerWebpackPlugin options, set `minify.css` to an object containing
|
|
321
|
+
[CssMinimizerWebpackPlugin options](https://webpack.js.org/plugins/css-minimizer-webpack-plugin/#options).
|
|
316
322
|
E.g.,
|
|
317
323
|
|
|
318
324
|
```json title="package.json"
|
|
@@ -321,7 +327,10 @@ E.g.,
|
|
|
321
327
|
"webpack": {
|
|
322
328
|
"minify": {
|
|
323
329
|
"js": {
|
|
324
|
-
// terser-webpack-plugin
|
|
330
|
+
// terser-webpack-plugin terserOptions
|
|
331
|
+
},
|
|
332
|
+
"css": {
|
|
333
|
+
// css-minimizer-webpack-plugin options
|
|
325
334
|
}
|
|
326
335
|
}
|
|
327
336
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/docs-uikit",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"cli": {
|
|
17
17
|
"webpack": false
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "6eca03725ca72a85b405412c0b8cb934eb341366"
|
|
20
20
|
}
|