Skip to content

Commit ebb08d8

Browse files
committed
feat: add warning
1 parent c502e48 commit ebb08d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/WebpackConfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,8 @@ class WebpackConfig {
699699
}
700700

701701
configureLoaderRule(name, callback) {
702+
logger.warning('Be careful when using Encore.configureLoaderRule(), this is a low-level method that can potentially breaks Encore and Webpack when not used carefully.');
703+
702704
if (!(name in this.loaderConfigurationCallbacks)) {
703705
throw new Error(`Loader "${name}" is not configurable. Valid loaders are "${Object.keys(this.loaderConfigurationCallbacks).join('", "')}".`);
704706
}

0 commit comments

Comments
 (0)