This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
feat: production build with vite #179
Merged
+264
−56
Merged
Changes from 15 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
cc10e19
wip: vite build
antfu 5bea6ae
wip: init vite build
antfu 4494d16
refactor: clean up
antfu 445cbf4
feat: use legacy build
antfu c13149b
fix: mock manifest on dev
antfu a2484af
feat: ssr build working!
antfu 2ce01d1
test: add style import to fixture
antfu 581e93b
fix: css imports in dev ssr
antfu 37558cc
Merge branch 'main' into antfu/vite-build
antfu 123fc26
chore: fix lint
antfu 167cbdb
Update docs/content/en/1.getting-started/3.build.md
antfu 2203631
chore: add mjs manifest
antfu 85664c9
refactor(client): early return for prod
pi0 e530761
use assetsPath for publicPath
pi0 7bd7b1b
feat: write server.manifest.mjs
pi0 ed52d34
use sequential imports
pi0 bf42b7a
refactor hash util
pi0 a06e9c6
refator: use isJS and isCSS utils
pi0 f1c35a5
some refactors
pi0 723003f
fix: remove ssr manifest files from client dist
pi0 5299838
write server.manifest.mjs in stub mode
pi0 fe535d2
fix eslint issue
pi0 7f7fcca
refactor: use rDist
pi0 8b79815
chore: update scripts
pi0 d3070c6
refactor: merge nested if
pi0 3076213
use normalized assetsPath for assetsDir
pi0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Build | ||
|
||
From v0.2.0, we shipped experimental build support with Vite. It's disabled by default and you can enable it by setting `vite.build: true` in config. | ||
|
||
```js | ||
// nuxt.config | ||
export default { | ||
buildModules: [ | ||
'nuxt-vite' | ||
], | ||
vite: { | ||
build: true | ||
} | ||
} | ||
``` | ||
|
||
Then run `nuxt build` with the power of Vite! |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { join } from 'upath' | ||
import fsExtra from 'fs-extra' | ||
|
||
export const wpfs = { | ||
export const wpfs: any = { | ||
...fsExtra, | ||
join | ||
} |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pi0 Should we make it default to true and for users to opt-out? Or maybe in next breaking?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I vote for next major (0.3.x) so that we can fix leftover issues like modern mode mapping, speeding up and better legacy.