Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Make --debug set copy-webpack-plugin's 'debug' option #391

Merged
merged 1 commit into from
Oct 29, 2017
Merged

Make --debug set copy-webpack-plugin's 'debug' option #391

merged 1 commit into from
Oct 29, 2017

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Oct 29, 2017

Setting copy-webpack-plugin's debug option to true increases the log level from warning to info:
https://github.com/webpack-contrib/copy-webpack-plugin#available-options

Which gives output of form:

[copy-webpack-plugin] processing from: '**/*' to: 'static'
[copy-webpack-plugin] begin globbing '...\src\static\**\*' with a context of '...\src\static'
[copy-webpack-plugin] determined that '.../src/static/foo.txt' should write to 'static/foo.txt'
[copy-webpack-plugin] reading ...\src\static\foo.txt to write to assets
[copy-webpack-plugin] writing 'static/foo.txt' to compilation assets from '...\src\static\foo.txt'

Refs #389.

Setting copy-webpack-plugin's `debug` option to `true` increases the
log level from `warning` to `info`:
https://github.com/webpack-contrib/copy-webpack-plugin#available-options

Which gives output of form:

```
[copy-webpack-plugin] processing from: '**/*' to: 'static'
[copy-webpack-plugin] begin globbing '...\src\static\**\*' with a context of 'C:\Users\Ed\src\_todo\neutrino-dev\src\static'
[copy-webpack-plugin] determined that '.../src/static/foo.txt' should write to 'static/foo.txt'
[copy-webpack-plugin] reading ...\src\static\foo.txt to write to assets
[copy-webpack-plugin] writing 'static/foo.txt' to compilation assets from '...\src\static\foo.txt'
```

Refs #389.
@edmorley edmorley self-assigned this Oct 29, 2017
Copy link
Member

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@edmorley edmorley merged commit 9650d30 into neutrinojs:master Oct 29, 2017
@edmorley edmorley deleted the debug-copy branch October 29, 2017 23:09
@edmorley edmorley mentioned this pull request Oct 29, 2017
8 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants