@docusaurus/core 0.0.0-5030 → 0.0.0-5033

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.
@@ -126,6 +126,10 @@ cli
126
126
  '--poll [interval]',
127
127
  'use polling rather than watching for reload (default: false). Can specify a poll interval in milliseconds',
128
128
  )
129
+ .option(
130
+ '--no-minify',
131
+ 'build website without minimizing JS bundles (default: false)',
132
+ )
129
133
  .action(async (siteDir, options) =>
130
134
  start(await resolveDir(siteDir), options),
131
135
  );
@@ -10,5 +10,6 @@ export declare type StartCLIOptions = HostPortOptions & Pick<LoadContextOptions,
10
10
  hotOnly?: boolean;
11
11
  open?: boolean;
12
12
  poll?: boolean | number;
13
+ minify?: boolean;
13
14
  };
14
15
  export declare function start(siteDir: string, cliOptions: Partial<StartCLIOptions>): Promise<void>;
@@ -93,7 +93,7 @@ async function start(siteDir, cliOptions) {
93
93
  ...{ pollingOptions },
94
94
  });
95
95
  ['add', 'change', 'unlink', 'addDir', 'unlinkDir'].forEach((event) => fsWatcher.on(event, reload));
96
- let config = (0, webpack_merge_1.default)(await (0, client_1.default)(props), {
96
+ let config = (0, webpack_merge_1.default)(await (0, client_1.default)(props, cliOptions.minify), {
97
97
  watchOptions: {
98
98
  ignored: /node_modules\/(?!@docusaurus)/,
99
99
  poll: cliOptions.poll,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docusaurus/core",
3
3
  "description": "Easy to Maintain Open Source Documentation Websites",
4
- "version": "0.0.0-5030",
4
+ "version": "0.0.0-5033",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -24,10 +24,10 @@
24
24
  "docusaurus": "bin/docusaurus.mjs"
25
25
  },
26
26
  "scripts": {
27
- "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.mjs",
27
+ "build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js",
28
28
  "watch": "run-p -c copy:watch build:watch",
29
29
  "build:watch": "tsc --build --watch",
30
- "copy:watch": "node ../../admin/scripts/copyUntypedFiles.mjs --watch"
30
+ "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
31
31
  },
32
32
  "bugs": {
33
33
  "url": "https://github.com/facebook/docusaurus/issues"
@@ -43,13 +43,13 @@
43
43
  "@babel/runtime": "^7.17.9",
44
44
  "@babel/runtime-corejs3": "^7.17.9",
45
45
  "@babel/traverse": "^7.17.12",
46
- "@docusaurus/cssnano-preset": "0.0.0-5030",
47
- "@docusaurus/logger": "0.0.0-5030",
48
- "@docusaurus/mdx-loader": "0.0.0-5030",
46
+ "@docusaurus/cssnano-preset": "0.0.0-5033",
47
+ "@docusaurus/logger": "0.0.0-5033",
48
+ "@docusaurus/mdx-loader": "0.0.0-5033",
49
49
  "@docusaurus/react-loadable": "5.5.2",
50
- "@docusaurus/utils": "0.0.0-5030",
51
- "@docusaurus/utils-common": "0.0.0-5030",
52
- "@docusaurus/utils-validation": "0.0.0-5030",
50
+ "@docusaurus/utils": "0.0.0-5033",
51
+ "@docusaurus/utils-common": "0.0.0-5033",
52
+ "@docusaurus/utils-validation": "0.0.0-5033",
53
53
  "@slorber/static-site-generator-webpack-plugin": "^4.0.4",
54
54
  "@svgr/webpack": "^6.2.1",
55
55
  "autoprefixer": "^10.4.7",
@@ -106,8 +106,8 @@
106
106
  "webpackbar": "^5.0.2"
107
107
  },
108
108
  "devDependencies": {
109
- "@docusaurus/module-type-aliases": "0.0.0-5030",
110
- "@docusaurus/types": "0.0.0-5030",
109
+ "@docusaurus/module-type-aliases": "0.0.0-5033",
110
+ "@docusaurus/types": "0.0.0-5033",
111
111
  "@types/detect-port": "^1.3.2",
112
112
  "@types/react-dom": "^18.0.4",
113
113
  "@types/react-router-config": "^5.0.6",
@@ -127,5 +127,5 @@
127
127
  "engines": {
128
128
  "node": ">=14"
129
129
  },
130
- "gitHead": "5d7556b95f0ed1fddbf328dc9bd449fc086c29c8"
130
+ "gitHead": "65ba5cbcf521bd2d0d6d3c00b1d59827970b78d4"
131
131
  }