feat(webpack): export webpack's config builder classes#5366
Closed
damianstasik wants to merge 1 commit intonuxt:devfrom
Closed
feat(webpack): export webpack's config builder classes#5366damianstasik wants to merge 1 commit intonuxt:devfrom
damianstasik wants to merge 1 commit intonuxt:devfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #5366 +/- ##
====================================
Coverage 96% 96%
====================================
Files 74 74
Lines 2529 2529
Branches 640 640
====================================
Hits 2428 2428
Misses 85 85
Partials 16 16Continue to review full report at Codecov.
|
Member
|
What about adding const { Builder } = require('@nuxt/builder');
const { Nuxt } = require('@nuxt/core');
const nuxt = new Nuxt()
const builder = new Builder(nuxt)
const bundleBuilder = builder.getBundleBuilder()
console.log(bundleBuilder.getConfig('server'))Exporting is probably the easiest way, but I'm suggesting this because there is no guarantee about refactors on 3rd level packages and breaking the way of usage which is proposed in PR. |
7 tasks
Author
|
@pi0 wasn't sure if you would accept a new API, but having such method would be awesome! Here is a new PR which adds such method to |
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Types of changes
Description
Currently there is no way to extract a webpack config from a Nuxt project, because there is no access to
WebpackClientConfig,WebpackServerConfigandWebpackModernConfig.Here is what I wanted to do:
Checklist: