You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/WebpackConfig.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
10
10
'use strict';
11
11
12
+
constchalk=require('chalk');
12
13
constpath=require('path');
13
14
constfs=require('fs');
14
15
@@ -94,7 +95,8 @@ class WebpackConfig {
94
95
*/
95
96
if(publicPath.includes('://')){
96
97
if(this.useDevServer()){
97
-
thrownewError('You cannot pass an absolute URL to setPublicPath() and use the dev-server at the same time. Try using Encore.isProduction() to only configure your absolute publicPath for production.');
98
+
console.log(chalk.bgYellow.black(' WARNING ')+chalk.yellow(' You should not pass an absolute URL to setPublicPath() and use the dev-server at the same time'));
0 commit comments