config-loader: pass in env as an option
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user