-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bundle utility functions with the nuxt module build and use bundled f…
…unctions directly This is a tradeoff between using the usemods package through npm or using source code directly to import the utility functions into Nuxt. This version copies the bundled utilities into the build process for the module and then references the bundled functions directly. It's a less elegant solution but solves for optimises for local development where changes are made to the base utility and needs fast rebuild of the module to use the new src. Attempted to use npm link but had numerous issues.
- Loading branch information
1 parent
0427dda
commit 481c475
Showing
9 changed files
with
635 additions
and
27 deletions.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,5 +1,5 @@ | ||
import { defineNuxtPlugin } from '#app' | ||
|
||
export default defineNuxtPlugin((nuxtApp) => { | ||
// console.log("mods injected by use-mods!") | ||
console.log('mods injected by use-mods!') | ||
}) |
Oops, something went wrong.