kn-cli 1.0.41 → 1.0.43
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/build/cli.config.js
CHANGED
package/build/webpack.config.js
CHANGED
|
@@ -40,6 +40,7 @@ const css_modules= CLI_CONFIG?.cssModule??'local';
|
|
|
40
40
|
const jsSplitMode = CLI_CONFIG?.jsSplitMode??true;
|
|
41
41
|
const indexHtml = CLI_CONFIG?.indexHtml ?? true;
|
|
42
42
|
const https= CLI_CONFIG?.https ?? false;
|
|
43
|
+
const appVersion= CLI_CONFIG?.version ?? '';
|
|
43
44
|
|
|
44
45
|
let distFolder = 'dist';
|
|
45
46
|
let distJsFolder='';
|
|
@@ -369,6 +370,7 @@ const plugins= [
|
|
|
369
370
|
MOCK: process.env.mock == 1 ? '1' : false, //JSON.stringify(process.env.mock)
|
|
370
371
|
...API_HOST,
|
|
371
372
|
PM_TYPE: JSON.stringify(process.env.pm_type),
|
|
373
|
+
APP_VERSION:JSON.stringify(appVersion)
|
|
372
374
|
}),
|
|
373
375
|
new webpack.SourceMapDevToolPlugin({
|
|
374
376
|
filename: 'sourcemap/[file].map',
|
package/package.json
CHANGED
package/readme.md
CHANGED
package/src/create.js
CHANGED