git-submodule-preserve
v1.0.0
Published
nuxt module for preserving git submodule in generated static apps
Downloads
3
Maintainers
Readme
git-submodule-preserve
nuxt module for preserving git submodule in generated static apps
❓ Why
By default nuxt generate
command, which is responsible for creating static web apps, remove the entire target folder at regeneration. This may be an issue if you decided to split your source code from generated code and version/store them on seperate git
repositories (git submodules). This module gives you the ability to preserve the git submodule
at your production folder.
🖥 Usage
# install using your favourite package manager
npm install git-submodule-preserve -D
# or
yarn add git-submodule-preserve -D
💡 It is highly recommended to use this module under
buildModules
in yournuxt.config.js
file and install as adevDependency
for a faster production startup and smallernode_modules
size.
📕 License
MIT
Erdem Bircan (c) 2019