Skip to content

Commit d22af4c

Browse files
authored
Emit warnings instead of errors when compilation is success but stderr is not empty (#416)
By default Webpack use stderr: https://webpack.js.org/configuration/other-options/#stream so Webpack plugins messages end up with 'error' severity. For example: https://github.com/gregnb/filemanager-webpack-plugin/blob/master/src/actions/copy.js#L25
1 parent a7d4520 commit d22af4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/shakapacker/compiler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def run_webpack
8888

8989
if status.success?
9090
logger.info "Compiled all packs in #{config.public_output_path}"
91-
logger.error "#{stderr}" unless stderr.empty?
91+
logger.warn "#{stderr}" unless stderr.empty?
9292

9393
if config.webpack_compile_output?
9494
logger.info stdout

0 commit comments

Comments
 (0)