@cityholdings/minicube-dev 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/build.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityholdings/minicube-dev",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Command-line workflow for mPaaS mini programs, H5 offline packages and Cube cards: build, debug upload, device preview and release",
5
5
  "type": "module",
6
6
  "bin": {
package/src/build.js CHANGED
@@ -138,7 +138,9 @@ async function buildMini(project, globalConfig, outRoot) {
138
138
  '--target', 'web', '--mode', 'concurrent', '--no-vuerender', '--zrender', '--rmlrender',
139
139
  '--external', 'appx', '--appxcompatible', 'tiny',
140
140
  '--project-config-json', encodeURIComponent(JSON.stringify(projectConfig)),
141
- '--prod', '--no-minify',
141
+ // Matches the mPaaS cloud build output (compared module by module): no --prod (no module
142
+ // concatenation, hashed module ids, no minify), shared sub-packages, host code placeholders.
143
+ '--force-sub-package-build-type-shared', '--output-code-placeholder', '--output-html-placeholder',
142
144
  ];
143
145
  log.step(`Compiling mini program ${id}`);
144
146
  log.detail(`Compiler ${builder.path}`);