config: flip priority order of ConfigReader.fromConfigs
This commit is contained in:
@@ -23,7 +23,7 @@ import { buildBundle } from '../../lib/bundler';
|
||||
export default async (cmd: Command) => {
|
||||
const appConfigs = await loadConfig({
|
||||
env: 'production',
|
||||
rootPaths: [paths.targetDir, paths.targetRoot],
|
||||
rootPaths: [paths.targetRoot, paths.targetDir],
|
||||
});
|
||||
await buildBundle({
|
||||
entry: 'src/index',
|
||||
|
||||
@@ -23,7 +23,7 @@ import { serveBundle } from '../../lib/bundler';
|
||||
export default async (cmd: Command) => {
|
||||
const appConfigs = await loadConfig({
|
||||
env: 'development',
|
||||
rootPaths: [paths.targetDir, paths.targetRoot],
|
||||
rootPaths: [paths.targetRoot, paths.targetDir],
|
||||
});
|
||||
const waitForExit = await serveBundle({
|
||||
entry: 'src/index',
|
||||
|
||||
@@ -23,7 +23,7 @@ import { serveBackend } from '../../lib/bundler/backend';
|
||||
export default async (cmd: Command) => {
|
||||
const appConfigs = await loadConfig({
|
||||
env: 'development',
|
||||
rootPaths: [paths.targetDir, paths.targetRoot],
|
||||
rootPaths: [paths.targetRoot, paths.targetDir],
|
||||
});
|
||||
const waitForExit = await serveBackend({
|
||||
entry: 'src/index',
|
||||
|
||||
@@ -23,7 +23,7 @@ import { buildBundle } from '../../lib/bundler';
|
||||
export default async (cmd: Command) => {
|
||||
const appConfigs = await loadConfig({
|
||||
env: 'production',
|
||||
rootPaths: [paths.targetDir, paths.targetRoot],
|
||||
rootPaths: [paths.targetRoot, paths.targetDir],
|
||||
});
|
||||
await buildBundle({
|
||||
entry: 'dev/index',
|
||||
|
||||
@@ -23,7 +23,7 @@ import { serveBundle } from '../../lib/bundler';
|
||||
export default async (cmd: Command) => {
|
||||
const appConfigs = await loadConfig({
|
||||
env: 'development',
|
||||
rootPaths: [paths.targetDir, paths.targetRoot],
|
||||
rootPaths: [paths.targetRoot, paths.targetDir],
|
||||
});
|
||||
const waitForExit = await serveBundle({
|
||||
entry: 'dev/index',
|
||||
|
||||
Reference in New Issue
Block a user