Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose webpack config #7029

Merged
merged 21 commits into from
Mar 2, 2020
Merged

feat: expose webpack config #7029

merged 21 commits into from
Mar 2, 2020

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Feb 28, 2020

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

🐑ing a long-time wanted feature!

nuxt webpack [query...]

Options:

  • --name: Bundle name to inspect. (client, server, modern)
  • --dev: Inspect webpack config for dev mode
  • --depth: Inspection depth. Defaults to 2 to prevent verbose output.
  • --no-colors: Disable ANSI colors (disabled by default when TTY is not available or when piping to a file)

Inspired by vue inspect a convenient way to quickly inspect webpack configuration. Some examples:

  • nuxt webpack
  • nuxt webpack devtool
  • nuxt webpack resolve alias
  • nuxt webpack module rules
  • nuxt webpack module rules test=.jsx
  • nuxt webpack module rules test=.pug oneOf use.0=raw
  • nuxt webpack plugins constructor.name=WebpackBar options reporter
  • nuxt webpack module rules loader=vue-
  • nuxt webpack module rules "loader=.*-loader"

DX: Tip to inspect more in-depth and auto-fallback to the upper-level match:

image

Why not nuxt inspect?

  • Reserve namespace for future improvements like inspecting more internals other than webpack
  • Ensure we can easily keep backward compatibility for cli while adding new possibilities

node_modules/nuxt/webpack.config.js

Exporting default webpack config for Client and rootDir of cwd() using getWebpackConfig. If nuxt.config.js is in current working dir (ide project root for example) it will be also correctly loaded. Some external tools may need access to the resolved webpack config as a file, for example, IDEs or command-line tools that expect a webpack config path.

getWebpackConfig(name, options)

import { getWebpackConfig } from 'nuxt'

getWebpackConfig()
getWebpackConfig('server', { rootDir: '...' })

This function returns a Promise which loads project config, creates an instance of nuxt internals, runs modules for extending webpack config with the final result of exactly what Nuxt internally using! Webpack supports Exporting a Promise so it is also a valid webpack config.

History

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly. (PR: #)
  • I have added tests to cover my changes (if not applicable, please state why)
  • All new and existing tests are passing.

@pi0 pi0 requested a review from a team February 28, 2020 20:00
@pi0 pi0 force-pushed the feat/expose-webpack branch from 5d9d869 to 9f83391 Compare February 28, 2020 23:07
@pi0 pi0 force-pushed the feat/expose-webpack branch from 9f83391 to e1c5071 Compare February 28, 2020 23:13
packages/cli/src/commands/webpack.js Outdated Show resolved Hide resolved
packages/cli/src/commands/webpack.js Outdated Show resolved Hide resolved
packages/cli/src/commands/webpack.js Outdated Show resolved Hide resolved
packages/cli/src/commands/webpack.js Outdated Show resolved Hide resolved
packages/cli/src/commands/webpack.js Outdated Show resolved Hide resolved
@codecov-io
Copy link

codecov-io commented Feb 29, 2020

Codecov Report

Merging #7029 into dev will increase coverage by 0.23%.
The diff coverage is 76.78%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #7029      +/-   ##
==========================================
+ Coverage   62.46%   62.69%   +0.23%     
==========================================
  Files          82       84       +2     
  Lines        3322     3375      +53     
  Branches      901      919      +18     
==========================================
+ Hits         2075     2116      +41     
- Misses       1001     1013      +12     
  Partials      246      246
Flag Coverage Δ
#unittests 62.69% <76.78%> (+0.23%) ⬆️
Impacted Files Coverage Δ
packages/cli/src/command.js 98.33% <0%> (-0.84%) ⬇️
packages/cli/src/utils/webpack.js 0% <0%> (ø)
packages/cli/src/commands/index.js 9.09% <0%> (-0.91%) ⬇️
packages/webpack/src/builder.js 8.57% <0%> (ø) ⬆️
packages/utils/src/resolve.js 96.36% <100%> (+0.06%) ⬆️
packages/cli/src/commands/webpack.js 93.18% <93.18%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5781c6e...cf76465. Read the comment docs.

@pi0 pi0 force-pushed the feat/expose-webpack branch from 5e204b3 to e1fde0b Compare February 29, 2020 02:48
@galvez
Copy link

galvez commented Feb 29, 2020

Great use of Nuxt commands! :)

@pi0 pi0 merged commit 903c3de into dev Mar 2, 2020
@pi0 pi0 deleted the feat/expose-webpack branch March 2, 2020 18:15
@pi0 pi0 mentioned this pull request Mar 17, 2020
@flozero
Copy link
Contributor

flozero commented May 2, 2020

Is it any doc for it ? I had to in the core code to check exactly i can use to get dev client config ^^.

{for: 'dev'}

Thank's for your work anyway that help a lot !

@pi0
Copy link
Member Author

pi0 commented May 3, 2020

@f3ltron If you have time to contribute to docs it would be more than welcome 🤗

@flozero
Copy link
Contributor

flozero commented May 3, 2020

i can add some yeah. I just don't know where to put it ^^

@pi0
Copy link
Member Author

pi0 commented May 3, 2020

@manniL May give some advice for best place to add :)

debs-obrien pushed a commit to nuxt/website-v2 that referenced this pull request Feb 10, 2021
Webpack inspection commands [were added in this pr](nuxt/nuxt#7029).  Documenting them so that people are aware
Rahma-AlWadhahi added a commit to Rahma-AlWadhahi/nuxtjs.org that referenced this pull request Mar 29, 2021
* feat: add GitHub Logo (nuxt#1205)

fix parsing issue tk file

* chore(deps): update dependency @nuxt/content to ^1.12.0 (nuxt#1207)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix: imagebot config

* docs: add example to disable serve placeholder

* docs(ja): guides/directory-structure/nuxt-config.md (nuxt#1139)

* description

* build

* css

* dev

* env

* runtimeConfig

* publicRuntimeConfig

* runtimeConfig

* runtimeConfig

* privateRuntimeConfig

* Using your config values

* Using your config values

* Using your config values

* Using your config values

* runtimeConfig

* generate

* head

* loading

* remove space

* modulesDir

* router

* server

* srcDir

* dir

* pageTransition

* Other configuration files

* gitignore

* minor

* minor

* remove `/`

* fix orthographic variants

* change translate

* add `.js`

* change translate

Co-authored-by: Debbie O'Brien <debs-obrien@users.noreply.github.com>
Co-authored-by: numa <aytdm251@gmail.com>

* chore(deps): lock file maintenance (nuxt#1212)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* fix: ubisoft logo in dark mode (nuxt#1211)

* Deploy to digitalocean App Platform guide (nuxt#1195)

* Deploy to digitalocean App Platform guide

* Update position

* fix: minor fixes

* [ImgBot] Optimize images (nuxt#1214)

*Total -- 1,381.58kb -> 1,120.16kb (18.92%)

/static/img/companies/preview/GitHub_Logo.png -- 30.39kb -> 18.21kb (40.09%)
/static/courses/nuxt-vue-steroids-2x.png -- 83.68kb -> 57.83kb (30.89%)
/static/courses/nuxt-vue-steroids.png -- 32.97kb -> 23.07kb (30.01%)
/static/courses/building-applications-with-vue-and-nuxt.png -- 27.42kb -> 19.19kb (30.01%)
/static/courses/building-applications-with-vue-and-nuxt-2x.png -- 50.72kb -> 35.63kb (29.76%)
/static/courses/learn-nuxt-with-debbie-2x.png -- 91.72kb -> 65.64kb (28.43%)
/static/courses/learn-nuxt-with-debbie.png -- 34.60kb -> 25.79kb (25.47%)
/static/courses/scaling-vue-with-nuxt-2x.png -- 132.15kb -> 98.99kb (25.09%)
/static/courses/build-server-rendered-app-with-nuxt-2x.png -- 83.73kb -> 64.78kb (22.63%)
/static/courses/create-news-app-with-vue-and-nuxt-2x.png -- 93.92kb -> 75.12kb (20.01%)
/static/courses/mastering-nuxt-2x.png -- 116.71kb -> 93.85kb (19.58%)
/static/courses/mastering-nuxt.png -- 40.69kb -> 33.75kb (17.04%)
/static/courses/get-started-with-nuxt.png -- 50.83kb -> 42.59kb (16.21%)
/static/courses/scaling-vue-with-nuxt.png -- 46.95kb -> 39.41kb (16.06%)
/static/courses/get-started-with-nuxt-2x.png -- 171.88kb -> 148.00kb (13.89%)
/static/courses/build-server-rendered-app-with-nuxt.png -- 29.31kb -> 26.38kb (10%)
/static/courses/create-news-app-with-vue-and-nuxt.png -- 33.04kb -> 30.18kb (8.68%)
/static/courses/build-job-board-with-nuxt-2x.png -- 17.13kb -> 15.86kb (7.43%)
/static/themes/nuxt-argon-dashboard-pro-laravel-2x.jpg -- 76.88kb -> 72.11kb (6.2%)
/static/img/companies/original/GitHub_Logo.png -- 12.70kb -> 12.02kb (5.34%)
/assets/illustrations/themes.svg -- 13.88kb -> 13.17kb (5.12%)
/static/themes/nuxt-argon-dashboard-pro-laravel.jpg -- 39.61kb -> 38.14kb (3.69%)
/assets/illustrations/videos.svg -- 9.97kb -> 9.92kb (0.57%)
/assets/illustrations/modules.svg -- 12.19kb -> 12.14kb (0.38%)
/assets/illustrations/theming.svg -- 25.82kb -> 25.75kb (0.29%)
/assets/illustrations/examples.svg -- 22.69kb -> 22.63kb (0.25%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>

* chore(deps): update all non-major dependencies (nuxt#1209)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Debbie O'Brien <debs-obrien@users.noreply.github.com>

* Update terserOptions documentation (nuxt#1149)

This part took me a while to figure out when dealing with source maps in Nuxt. This was mainly due to the misleading content in the updated paragraph. 
Here's my attempt to make it more clear and save other devs some precious time.

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>

* updates path in plugins array (nuxt#1216)

* feat: examples menu spanish (nuxt#1217)

* [Spanish] docs(es): add examples book  (nuxt#1012)

* feat(i18n): add hello world example

* docs(es): add example routing-active-links-classes.md

* docs(es): translate custom-loading-component.md

* docs(es): translate customize-loading-indicator.md

* docs(es): translate customize-nuxt-loading.md

* docs(es): translate transitions.md

* docs(es): fix wrong files translated

* docs(es): translate data-fetching-async-data.md, data-fetching-fetch-hook.md

* docs(es): translate middleware-anonymous.md, middleware-named.md, middleware-router.md

* docs(es): translate seo-twitter-og.md

* docs(es): translate helpers.md

* fix: remove fullstop to fix link

* Apply suggestions from code review

Co-authored-by: Alvaro Saburido <alvaro.saburido@gmail.com>

* Apply suggestions from code review

Co-authored-by: Alvaro Saburido <alvaro.saburido@gmail.com>

* nuxt#1012 (comment) naming conventions

* translate layout.md, lazy-loading-components.md

* translate modules-axios.md, modules-internal.md, plugins-client-only.md, plugins-custom.md, plugins-external-packages.md, plugis-vue.md

* translate routing-dynamic-pages.md, routing-nested-pages.md

* translate pre-processors.md, seo-html-head.md

* translate vuex-sotre.md, webpack-assets.md

* nuxt#1012 (review) suggested changes

Co-authored-by: Randy <randy.tellez@flexy.com.br>
Co-authored-by: MikeLiam <miguelalcalaromero@gmail.com>
Co-authored-by: Debbie O'Brien <debs-obrien@users.noreply.github.com>
Co-authored-by: Alvaro Saburido <alvaro.saburido@gmail.com>

* fix: nuxtlabs (nuxt#1218)

change examples after repo name change

* Added just a small info tab about global CSS files (nuxt#1220)

Nuxt makes most of the things automatically so I was thinking that people may think that global CSS files are loaded automatically. Which is not true. This makes it clear.

* Add deploy instructions for Platform.sh (nuxt#1219)

* Add deploy instructions for Platform.sh.

Another PaaS host that makes hosting Nuxt easy.  I'm not sure what the position value should be, nor if you're OK with the particular formatting for the deploy button.  I can change both if you advise what they should be changed to.

Cheers.

* Formatting and typos

Co-authored-by: Daniel Roe <daniel@roe.dev>

* Add fixed height for the Deploy on Platform.sh button.

Co-authored-by: Daniel Roe <daniel@roe.dev>

* Update file-system-routing.md (nuxt#1221)

* Deploy with Cleavr guide (nuxt#1222)

* Added Cleavr to deployments section

* Update content/en/guides/deployment/cleavr-deployment.md

Co-authored-by: Daniel Roe <daniel@roe.dev>

* Update content/en/guides/deployment/cleavr-deployment.md

Co-authored-by: Daniel Roe <daniel@roe.dev>

* Update content/en/guides/deployment/cleavr-deployment.md

Co-authored-by: Daniel Roe <daniel@roe.dev>

* Update content/en/guides/deployment/cleavr-deployment.md

Co-authored-by: Daniel Roe <daniel@roe.dev>

* Update content/en/guides/deployment/cleavr-deployment.md

Co-authored-by: Daniel Roe <daniel@roe.dev>

Co-authored-by: Daniel Roe <daniel@roe.dev>

* Fix incorrect punctuation in components docs (nuxt#1225)

* Fix incorrect punctuation in components docs

* Apply suggestions from code review

Co-authored-by: Daniel Roe <daniel@roe.dev>

Co-authored-by: Debbie O'Brien <debs-obrien@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>

* Correct typographical error (nuxt#1236)

Correct the misspelling of 'match' which is currently spelt as 'matche'.

* Added the keyboard shortcut for '~' on Windows (nuxt#1235)

Co-authored-by: Debbie O'Brien <debs-obrien@users.noreply.github.com>

* chore(deps): lock file maintenance (nuxt#1234)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* docs: text improvements (nuxt#1238)

improve readability

* docs: update `sass-loader` recommendation to v10 (nuxt#1226)

* Fix typo. (nuxt#1240)

* Add Webpack Commands to docs (nuxt#1242)

Webpack inspection commands [were added in this pr](nuxt/nuxt#7029).  Documenting them so that people are aware

* docs: apply fixes for nuxt#1242

* docs(id): translate $nuxt.md to Indonesian (nuxt#1245)

* docs(id): added translation to $nuxt.md

* docs(id): improve translation to $nuxt.md

* update docs (nuxt#1246)

* Fix alias typo (nuxt#1241)

* docs: update default webpack chunk filenames (nuxt#1233)

see nuxt/nuxt#8778

* Docs(id): translated configuration alias and css (nuxt#1213)

* docs(id): added translation to configuration-alias.md

* docs(id): added translation to configuration-css.md

* correct translation mistakes

* docs(id): translate internals glossary to Indonesian (nuxt#1247)

* docs(id): added translation to $nuxt.md

* docs(id): improve translation to $nuxt.md

* docs(id): added translation to internals-nuxt.md

* docs(id): added translation to internals-renderer.md

* docs(id): added translation to internals-module-container.md

* docs(id): added translation to context.md

* docs(id): fix translation of context.md & internals-module-container.md

* docs(id): fix translatation of internals glossary

* feat: add plausible (nuxt#1251)

And some lint fixes

* docs(ja): translate concepts/nuxt-lifecycle (nuxt#1228)

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): translate internals-glossary/internals (nuxt#1230)

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): guides/directory-structure/nuxt.md (nuxt#1232)

* description

* description base alert

* The buildDir Property

* Inside the .nuxt folder:

* Deploying

* questions

* remove space

* change translate

* translate change

Co-authored-by: numa <aytdm251@gmail.com>

* docs(id): translate configuration glossary to indonesian (nuxt#1253)

* feat: copy english docs

* docs(id): added translation to configuration-builddir.md

* docs(id): added translation to configuration-dev.md

* docs(id): added translation to configuration-env.md

* docs(id): added translation to configuration-global-name.md

* docs(id): correct translation mistakes

* docs(ja): translate concepts/context-helpers (nuxt#1227)

* docs(ja): translate concepts/context-helpers

* Update content/ja/guides/concepts/context-helpers.md

Co-authored-by: kakikubo <kakikubo@gmail.com>

* Update content/ja/guides/concepts/context-helpers.md

Co-authored-by: kakikubo <kakikubo@gmail.com>

Co-authored-by: kakikubo <kakikubo@gmail.com>
Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): translate internals-glossary/internals-builder (nuxt#1231)

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): translate internals-glossary/$nuxt (nuxt#1229)

* docs(ja): translate internals-glossary/nuxt

* Update content/ja/guides/internals-glossary/$nuxt.md

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* Update content/ja/guides/internals-glossary/$nuxt.md

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* Update FR website (nuxt#1267)

* change menu item for FR lang

* create en content item for video and update page to consume it

* create french translation of video-courses

* add i18 example translate

* Update views.md (nuxt#1270)

Word in english found "is" un line 181, elimnated.

* update default github branch name (nuxt#1271)

github has updated it default branch name to `main`

* docs: asyncData merging type (nuxt#1254)

This removes ambiguity on how asyncData merges with component data i.e. only a shallow merge is done. Users should not expect a deep merge.

* docs: update renderAndGetWindow example (nuxt#1262)

closes nuxt#1198

* chore: fix components naming

* fix: remove recursive component reference in `<AdsBlock>` (nuxt#1281)

* update docs about nested directories components (nuxt#1279)

* Update nested directory components

https://github.com/nuxt/components#nested-components

* Update missing typo

* Fix prefix sub folder

* simplify more

* Update components.md

Co-authored-by: pooya parsa <pyapar@gmail.com>

* (docs) Update version and star count (nuxt#1289)

* feat: add videos (nuxt#1285)

* feat: add videos

* feat: YouTube component and key

add key for unique videos
create component so it renders correctly

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>

* docs(id): translate untranslated thing in id-ID.js (nuxt#1291)

* docs(id): translate configuration head and configuration hooks (nuxt#1292)

* docs(id): translate configuration head

* docs(id): translate configuration hooks

* Fix error in example code in creating-blog-with-nuxt-content.md (nuxt#1293)

* docs(id): translate modules.md into Indonesia (nuxt#1169)

* docs(i18n-id): translate modules.md and several config section into Indonesia

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/directory-structure/modules.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

Co-authored-by: Debbie O'Brien <debs-obrien@users.noreply.github.com>
Co-authored-by: Febri Hidayan <febrihidayan20@gmail.com>
Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* docs(id): finish translate directory structure to indonesia (nuxt#1276)

* feat: copy en docs

* docs(id): added translation to nuxt-config.md

* docs(id): improve translation to nuxt-config.md

* docs(id): added translation to modules.md

* docs(id): delete modules.md

* Update nuxt-config.md

Co-authored-by: Febri Hidayan <febrihidayan20@gmail.com>

* docs(ja): translate directory-structure/plugins (nuxt#1266)

* docs(ja): translate directory-structure/plugins

* Fix punctuation and parentheses according to rules

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* remove unwanted particles (nuxt#1294)

Co-authored-by: numa <aytdm251@gmail.com>
Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): documented new loadingSreen property (nuxt#1303)

* docs(ja): fix typo in code chunk

* docs(ja): fix name of example to match with object listed above

* doc(ja) documented new loadingScreen property

* docs: documented new loadingScreen property

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): translate internals-generator (nuxt#1259)

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): translate internals-glossary/internals-module-container (nuxt#1260)

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): translate internals-glossary/internals-nuxt (nuxt#1261)

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* (feat) fix links

* docs(id): Translate configuration glossary (nuxt#1296)

* Copy to-be-translated files

* Finished translating configuration-ignore.md to Bahasa Indonesia

* Translated configuration-mode.md to Bahasa Indonesia

* Translated configuration-plugins.md to Bahasa Indonesia

* Translated configuration-rootdir.md to Bahasa Indonesia

* Minor translation fix in id/configuration-ignore.md

* Update content/id/guides/configuration-glossary/configuration-rootdir.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/configuration-glossary/configuration-ignore.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>
Co-authored-by: Febri Hidayan <febrihidayan20@gmail.com>

* Update configuration-hooks.md (nuxt#1314)

- Fix a typo.

Co-authored-by: numa <aytdm251@gmail.com>

* docs(ja): documented webpack config inspection (nuxt#1315)

* docs(ja): documented webpack config inspection

* Fixed textlint error

* Update content/ja/guides/get-started/commands.md

Co-authored-by: numa <aytdm251@gmail.com>

* docs(id): Numerous translation fixes for homepage (nuxt#1297)

* Numerous translation fixes for homepage in Bahasa Indonesia.

* Update i18n/id-ID.js

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update i18n/id-ID.js

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update i18n/id-ID.js

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update i18n/id-ID.js

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

Co-authored-by: Febri Hidayan <febrihidayan20@gmail.com>
Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* (fix) adsBlock issue

* docs(ja): fix to add single quotes in ds/plugin (nuxt#1305)

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): translate internals-glossary/nuxt-render-and-get-window (nuxt#1306)

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): translate internals-glossary/nuxt (nuxt#1307)

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): translate internals-glossary/nuxt-render (nuxt#1308)

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): translate internals-glossary/nuxt-render-route (nuxt#1309)

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): translate internals-glossary/internals-renderer (nuxt#1310)

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(id): Translation from configuration-modern to configuration-modulesdir (nuxt#1322)

* docs(i18n-id): Provide Indonesian translation for 'configuration-modern.md'

* docs(i18n-id): Provide Indonesian translation for configuration-modules

* docs(i18n-id): Provide Indonesian translation for configuration-modulesdir

* docs(i18n-id): Implement suggestion to rephrase translation on configuration-modules

* docs(id): Translate configuration-glossary (nuxt#1324)

* Copied to-be-translated files

* Translated configuration-loading.md to Indonesian.

* Translated configuration-server.md to Indonesian

* Translated configuration-loading-indicator.md to Indonesian

* Minor translation fixes on configuration-loading.md

* Typo fixes

* Update content/id/guides/configuration-glossary/configuration-loading.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/configuration-glossary/configuration-loading.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/configuration-glossary/configuration-loading.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/configuration-glossary/configuration-loading.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/configuration-glossary/configuration-loading.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/configuration-glossary/configuration-server.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/configuration-glossary/configuration-loading-indicator.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/configuration-glossary/configuration-server.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/configuration-glossary/configuration-server.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/configuration-glossary/configuration-server.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* Update content/id/guides/configuration-glossary/configuration-server.md

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>

* docs(id): translation for configuration guides (runtime-config -> ssr) (nuxt#1326)

* docs(id): Provide Indonesian translation for configuration-runtime-config

* docs(id): Provide Indonesian translation for configuration-ssr

* Update configuration-runtime-config.md

* Update configuration-ssr.md

Co-authored-by: Febri Hidayan <febrihidayan20@gmail.com>

* chore: update master -> main for renovate

* docs: add info about fetch caching for static target (nuxt#1295)

* chore(deps): upgrade lint dependencies (nuxt#1333)

* chore(deps): upgrade all deps (nuxt#1334)

* docs: fixed typo (nuxt#1319)

* docs: add example complex store structure (nuxt#1320)

Co-authored-by: Daniel Roe <daniel@roe.dev>

* ci: update branch name in workflows (nuxt#1336)

* docs: use `token` consistently throughout post (nuxt#1237)

* docs: clarify that mixin flag should be unique (nuxt#1243)

Co-authored-by: Daniel Roe <daniel@roe.dev>

* fix: update component paths to work with new names (nuxt#1337)

* chore(deps): lock file maintenance (nuxt#1263)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update all non-major dependencies (nuxt#1335)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* docs: update node version in github-pages workflow (nuxt#1339)

* fix: update header link from `/faq` to `/resources` (nuxt#1338)

* ci: update workflows to node v14/ubuntu 20.04 (nuxt#1340)

* fix: update edit on github links to point to main (nuxt#1341)

* docs: update titles for Nuxt components (nuxt#1250)

* docs: update titles for Nuxt components

* chore: fix headings

Co-authored-by: Daniel Roe <daniel@roe.dev>

* chore(deps): lock file maintenance (nuxt#1345)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* chore(deps): update all non-major dependencies (nuxt#1344)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* docs(fr): fix typo (nuxt#1343)

Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>

* docs: fix typo in pm2 deployment (nuxt#1353)

* Fixed typo

* Update content/en/guides/deployment/deployment-pm2.md

Co-authored-by: Daniel Roe <daniel@roe.dev>

Co-authored-by: Daniel Roe <daniel@roe.dev>

* docs: remove incorrect closing bracket (nuxt#1354)

Co-authored-by: Daniel Roe <daniel@roe.dev>

* docs(ja): document the unit for the `interval` property (nuxt#1327)

Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): Configuration glossary/configuration render (nuxt#1328)

* docs(ja): add info on new `render.asyncScripts` option

* docs(ja): add example to disable serve placeholder

Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): update features/nuxt-components (nuxt#1329)

* docs(ja): add note about accesing refs with client rendered comps

* fix: link to blog

Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): update untranslated documents (nuxt#1330)

Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs(ja): fix features documents (nuxt#1332)

Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs: update some faq links (nuxt#1356)

* chore: re-enable `@nuxtjs/eslint-module` (nuxt#1358)

* chore(deps): lock file maintenance (nuxt#1357)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* docs: recommend `fetch()` as replacement for asyncData in components (nuxt#1365)

* fix: update link to `/faq` (nuxt#1368)

* docs(ja): update some documents and move faq (nuxt#1367)

* docs(ja): add `fibers` explanation

* docs(ja): update documents

* docs(ja): move faq to _archives

* docs(ja): fix lint error

Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>

* docs: clarify what values are added to global process (nuxt#1369)

* docs: update links to content module docs (nuxt#1371)

* docs: add a missing brace (nuxt#1372)

* docs(fr): fix conjugation (nuxt#1374)

* docs(assets): update code reference (nuxt#1370)

* docs(assets): update code reference

Code reference for url-loader and file-loader was outdated and still referenced the already removed file `lib/builder/webpack/base.js` with last commit `c1e0d174319f209bbfa4d34cfd2e17e82f45537` on October 18, 2018.

I've taken the liberty to evaluate `Object.assign(this.loaders.xxx, { name: this.getFileName('xxx')})` since I think that referencing [build.js](https://github.com/nuxt/nuxt.js/blob/dev/packages/config/src/config/build.js#L15-L27) would only serve to confuse the reader.

I've also added the `file-loader` code, since the explanation above stated

> For **these two loaders**, the default configuration is:

Not sure if the intent was to show both `url-loader` and `file-loader` or `url-loader` only.

* docs(assets): add comment for 1000 bytes => 1kB

* Update content/en/guides/directory-structure/assets.md

Co-authored-by: Daniel Roe <daniel@roe.dev>

* Update content/en/guides/directory-structure/assets.md

Co-authored-by: Daniel Roe <daniel@roe.dev>

* Update content/en/guides/directory-structure/assets.md

Co-authored-by: Daniel Roe <daniel@roe.dev>

Co-authored-by: Daniel Roe <daniel@roe.dev>

* docs: update port/host for google cloud run (nuxt#1351)

* Update deployment-cloud-run.md

Updated to use Google Cloud run default settings for Docker.
I removed the server config settings because they get suppressed by the `NUXT_HOST` and `NUXT_PORT` env variables values for Cloud Run
This seems straightforward and much easier to understand but I'll need reviewers to confirm that.

* update deployment-cloud-run.md

Co-authored-by: Daniel Roe <daniel@roe.dev>

* fix: correct directory name (nuxt#1376)

* docs: Windows doc update for injection of env. (nuxt#1342)

Adding example of usage Automatic injection of environment variables on the Windows, since Windows require user a bit different syntax, I noticed a lot of people have this problem and are looking for solution, since not every one uses unix based console. So I propose to add example in the Windows users case.

Co-authored-by: Debbie O'Brien <debs-obrien@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Debbie O'Brien <debs_obrien@yahoo.co.uk>
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: tamfoi <tamfoi@users.noreply.github.com>
Co-authored-by: numa <aytdm251@gmail.com>
Co-authored-by: Krystian <30830448+phikko@users.noreply.github.com>
Co-authored-by: Alba Silvente Fuentes <36744484+Dawntraoz@users.noreply.github.com>
Co-authored-by: imgbot[bot] <31301654+imgbot[bot]@users.noreply.github.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: Jan Bílek <honza.bilek4@gmail.com>
Co-authored-by: Arlen Peiffer <arlenpeiffer@gmail.com>
Co-authored-by: Randy Tellez Galán <kronhyx@gmail.com>
Co-authored-by: Randy <randy.tellez@flexy.com.br>
Co-authored-by: MikeLiam <miguelalcalaromero@gmail.com>
Co-authored-by: Alvaro Saburido <alvaro.saburido@gmail.com>
Co-authored-by: Alejandro del Rio Santiago <adelriosantiago@gmail.com>
Co-authored-by: Larry Garfield <larry@garfieldtech.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: Jorge Baumann <jorge.baumann.aguilar@gmail.com>
Co-authored-by: Adam Miedema <armgitaar@yahoo.com>
Co-authored-by: Curt Grimes <github@curtgrimes.com>
Co-authored-by: Emmanuel Akhigbe <akhigbemmanuel@gmail.com>
Co-authored-by: Ilán Vivanco <melior88@gmail.com>
Co-authored-by: Norio Kimura <kimura@monad.tv>
Co-authored-by: Austin Story <lonnieastory@gmail.com>
Co-authored-by: pooya parsa <pyapar@gmail.com>
Co-authored-by: Fatur Rahman S <31777261+Dexalt142@users.noreply.github.com>
Co-authored-by: Lan Zhang <42923290+lanzhang76@users.noreply.github.com>
Co-authored-by: Fajar Afriansh <fajar.afrianshah@gmail.com>
Co-authored-by: INOUE Takuya <inouetakuya5@gmail.com>
Co-authored-by: kakikubo <kakikubo@gmail.com>
Co-authored-by: fabien kerinec <fabien.kerinec@gmail.com>
Co-authored-by: Diego Garro Molina <51692835+diego-garro@users.noreply.github.com>
Co-authored-by: Devon Rathie-Wright <devon.w@gmail.com>
Co-authored-by: Mohammed Sohail <sohailsameja@gmail.com>
Co-authored-by: Jeffrey.dev <48074612+JeffreyDotDev@users.noreply.github.com>
Co-authored-by: Rio Chandra <riochandra4@gmail.com>
Co-authored-by: Arnab Sen <arnabsen@gmail.com>
Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>
Co-authored-by: Nick Stoler <nmapsy@gmail.com>
Co-authored-by: Ridwan Maulana <rdwanf49@gmail.com>
Co-authored-by: Febri Hidayan <febrihidayan20@gmail.com>
Co-authored-by: k.natsumi <usako7233@gmail.com>
Co-authored-by: torish <49876561+torish14@users.noreply.github.com>
Co-authored-by: kwgchi <eiichi.kendoruki@gmail.com>
Co-authored-by: Alexandre Chopin <alex@nuxtjs.com>
Co-authored-by: Danil Hendra Suryawan <danilhendrasr@gmail.com>
Co-authored-by: ktmouk <ktmouk.dev@gmail.com>
Co-authored-by: Cristopher <32661241+Namchee@users.noreply.github.com>
Co-authored-by: Grant Jennings <grantscottjennings@gmail.com>
Co-authored-by: Feixu <feixu@tutanota.com>
Co-authored-by: RobSteward <robinscharf@gmail.com>
Co-authored-by: Iljs <ilja@kotir.space>
Co-authored-by: vedmaque <vedmaque@gmail.com>
Co-authored-by: Nicolas <13479932+nyn0x@users.noreply.github.com>
Co-authored-by: Saunved Mutalik <saunved@gmail.com>
Co-authored-by: CleverLili <80835303+CleverLili@users.noreply.github.com>
Co-authored-by: Arongkorn Pornchaiprasit <rootblack45@gmail.com>
Co-authored-by: EGGSY <eggsydev@outlook.com>
Co-authored-by: aesyondu <57334943+aesyondu@users.noreply.github.com>
Co-authored-by: KhaledDev <boubkhaled@gmail.com>
Co-authored-by: Romain 'Maz' BILLOIR <romainb@octobercms.fr>
Co-authored-by: Nathan Fletcher <fletcher.nathan.a@gmail.com>
Co-authored-by: Mi@ow Ettapp <Ettapp@users.noreply.github.com>
Co-authored-by: Łukasz Isu <isuke.priv@gmail.com>
pi0 pushed a commit to nuxt/website-v2 that referenced this pull request Jul 8, 2021
Webpack inspection commands [were added in this pr](nuxt/nuxt#7029).  Documenting them so that people are aware
imgbot bot pushed a commit to nuxt/website-v2 that referenced this pull request Jan 10, 2023
Webpack inspection commands [were added in this pr](nuxt/nuxt#7029).  Documenting them so that people are aware
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants