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.
Configurable
src
directoryNote
This is a non-breaking change feature, so the default
src
directory is still the same as the project root directory.This PR introduces a new
dirs.src
option to the Vulmix configuration file. This option allows you to specify the directory where the application source code is located.The application source code includes the following files and directories:
assets/
directorycomponents/
directorycomposables/
directorylayouts/
directorypages/
directoryplugins/
directory404.vue
fileapp.vue
fileAnother example of application code are stores from Pinia or any other state management library.
You can use the
@
alias to import files from thesrc
directory. For example, say you have set you src directory to be/src
and you want to access a Pinia store fromsrc/stores
directory. You can do it like this:Warning
The
~
still points to the project root directory.