cob-cli 2.48.1 → 2.49.0
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.
|
@@ -40,10 +40,14 @@ async function customUIsContinuosReload(cmdEnv, dashboard) {
|
|
|
40
40
|
|
|
41
41
|
console.log( "\n" + (" NOTE: Press " + "O".bold.red + " to open default browser, " + "CTRL+C".bold.red + " or " + "Q".bold.red + " to stop the tests... ").yellow.bold + "\n\n" )
|
|
42
42
|
|
|
43
|
+
const insideCobCliPath = path.resolve(__dirname, '../../node_modules/.bin/webpack-dev-server');
|
|
44
|
+
const outsideCobCliPath = path.resolve(__dirname, '../../../.bin/webpack-dev-server');
|
|
45
|
+
const webpackDevServerPath = fs.existsSync(insideCobCliPath) ? insideCobCliPath : outsideCobCliPath;
|
|
46
|
+
|
|
43
47
|
commands.push({
|
|
44
48
|
// run wepback from cob-cli directory with webpack.config.js also from cob-cli directory
|
|
45
49
|
command: [
|
|
46
|
-
|
|
50
|
+
webpackDevServerPath,
|
|
47
51
|
"--config",
|
|
48
52
|
path.resolve(__dirname, "../webpack/webpack.config.js"),
|
|
49
53
|
"--mode=development"
|
package/package.json
CHANGED