neutrinojs / neutrino

Create and build modern JavaScript projects with zero initial configuration.
https://neutrinojs.org
Mozilla Public License 2.0
3.95k stars 214 forks source link

Add neutrino --inspect support for alternative config filenames #1612

Closed SilvaQ closed 3 years ago

SilvaQ commented 4 years ago

the inspect command supports specifying a configuration file #1609

SilvaQ commented 3 years ago

Hi! Thank you for the PR - sorry for the delayed review.

Could you also document this here: https://neutrinojs.org/usage/#inspecting-the-generated-webpack-config https://github.com/neutrinojs/neutrino/blob/master/docs/usage.md#inspecting-the-generated-webpack-config

Hi @edmorley I use translation software to translate my language into English, so if I continue to translate and supplement the documentation, will the content of this machine translation affect the user's understanding? And I don't have a better explanation for this feature.

Do we have any better options for solving this difficulty?

edmorley commented 3 years ago

@SilvaQ Ah no problem - I can suggest a wording.

In that section of the documentation, replace this:

Or:

```bash
NODE_ENV={production,development,test} neutrino --inspect

With:

Or:

NODE_ENV={production,development,test} neutrino --inspect

If your Neutrino configuration file is not named .neutrinojs.js, specify the filename using --config. For example:

neutrino --inspect --mode {production,development} --config .custom.neutrino.config.js
edmorley commented 3 years ago

I'll publish a new Neutrino release sometime this week :-)

edmorley commented 3 years ago

Sorry for the delay - this has now been published in Neutrino v9.5.0 :-)