fix: careful with relative paths
This commit is contained in:
parent
8ffeca7567
commit
3b7ffa6cd0
|
@ -1,4 +1,5 @@
|
||||||
import {spawn} from 'child_process';
|
import {spawn} from 'child_process';
|
||||||
|
import {join} from 'path';
|
||||||
|
|
||||||
import {require as R} from '@latus/core';
|
import {require as R} from '@latus/core';
|
||||||
|
|
||||||
|
@ -26,7 +27,7 @@ export default {
|
||||||
|| process.argv.find((arg) => 'production' === arg)
|
|| process.argv.find((arg) => 'production' === arg)
|
||||||
) {
|
) {
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
configs.http = R('./build/.neutrinorc');
|
configs.http = R(join(__dirname, 'build/.neutrinorc.js'));
|
||||||
}
|
}
|
||||||
else if (-1 === excludeBuilds.indexOf('http')) {
|
else if (-1 === excludeBuilds.indexOf('http')) {
|
||||||
const binary = `$(npm --prefix ${process.cwd()} bin)/webpack-dev-server`;
|
const binary = `$(npm --prefix ${process.cwd()} bin)/webpack-dev-server`;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user