config-loader: pass in env as an option

This commit is contained in:
Patrik Oldsberg
2020-08-07 10:52:50 +02:00
parent 74edab290a
commit a37aa1d994
8 changed files with 13 additions and 4 deletions
+1
View File
@@ -22,6 +22,7 @@ import { buildBundle } from '../../lib/bundler';
export default async (cmd: Command) => {
const appConfigs = await loadConfig({
env: 'production',
rootPaths: [paths.targetDir, paths.targetRoot],
});
await buildBundle({
+1
View File
@@ -22,6 +22,7 @@ import { serveBundle } from '../../lib/bundler';
export default async (cmd: Command) => {
const appConfigs = await loadConfig({
env: 'development',
rootPaths: [paths.targetDir, paths.targetRoot],
});
const waitForExit = await serveBundle({
+1
View File
@@ -22,6 +22,7 @@ import { serveBackend } from '../../lib/bundler/backend';
export default async (cmd: Command) => {
const appConfigs = await loadConfig({
env: 'development',
rootPaths: [paths.targetDir, paths.targetRoot],
});
const waitForExit = await serveBackend({
@@ -22,6 +22,7 @@ import { buildBundle } from '../../lib/bundler';
export default async (cmd: Command) => {
const appConfigs = await loadConfig({
env: 'production',
rootPaths: [paths.targetDir, paths.targetRoot],
});
await buildBundle({
@@ -22,6 +22,7 @@ import { serveBundle } from '../../lib/bundler';
export default async (cmd: Command) => {
const appConfigs = await loadConfig({
env: 'development',
rootPaths: [paths.targetDir, paths.targetRoot],
});
const waitForExit = await serveBundle({