@soleil-se/build-app 1.2.1 → 1.2.2
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/config/index.js +3 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/config/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { client, server } from '../rollup/index.js';
|
|
|
2
2
|
import copy from '../utils/copy.js';
|
|
3
3
|
import configFiles from '../utils/configFiles.js';
|
|
4
4
|
|
|
5
|
-
export default function config({ src, dest, cache }) {
|
|
5
|
+
export default function config({ src, dest, cache, debug }) {
|
|
6
6
|
if (src) {
|
|
7
7
|
return [
|
|
8
8
|
copy({ src: `${src}/index.html`, dest }),
|
|
@@ -10,6 +10,7 @@ export default function config({ src, dest, cache }) {
|
|
|
10
10
|
server({
|
|
11
11
|
input: `${src}/index.js`,
|
|
12
12
|
output: `${dest}/index.js`,
|
|
13
|
+
debug,
|
|
13
14
|
}),
|
|
14
15
|
client({
|
|
15
16
|
input: `${src}/config.js`,
|
|
@@ -18,6 +19,7 @@ export default function config({ src, dest, cache }) {
|
|
|
18
19
|
showSize: false,
|
|
19
20
|
hydratable: false,
|
|
20
21
|
cache,
|
|
22
|
+
debug,
|
|
21
23
|
}),
|
|
22
24
|
configFiles({ dest }),
|
|
23
25
|
];
|
package/index.js
CHANGED
|
@@ -55,7 +55,7 @@ async function main() {
|
|
|
55
55
|
cache: args.cache,
|
|
56
56
|
cssOutput,
|
|
57
57
|
})),
|
|
58
|
-
task('config', config({ src: input.config, dest: './dist/src/config', cache: args.cache })),
|
|
58
|
+
task('config', config({ src: input.config, dest: './dist/src/config', cache: args.cache, debug: args.debug })),
|
|
59
59
|
task('globalConfig', config({ src: input.globalConfig, dest: './dist/src/config/global', cache: args.cache })),
|
|
60
60
|
task('files', files({ type: manifest.type, dest: './dist' })),
|
|
61
61
|
task('zip', zip({ src: './dist/src', dest: zipPath })),
|