
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
@nuxt/static
Advanced tools
The fastest way to statically export your Nuxt application ⚡️
Simply run nuxt static
for deploying your Nuxt application on Vercel, Netlify or any CI.
nuxt export
(or nuxt generate
for legacy users)Install package:
# Using yarn
yarn add --dev @nuxt/static
# Using npm
npm i -D @nuxt/static
This will add a new nuxt static
command:
npx nuxt static
This command will (re-)build project if necessary and then use nuxt generate
or nuxt export
based on target
option set in nuxt.config
.
By the first nuxt static
run, checksum of project files will be added to .nuxt/build.json
. When using CI/CD, you have to cache/restore .nuxt
You can pass extra options with static
key in nuxt.config
:
export default {
static: {
ignore: [
'docs' // ignore changes in docs to avoid re-build
]
}
}
ignore
string[]
or function
Globby patterns to ignore for snapshot. If an array is provided, it will be merged with default options, you can give a function to return an array that will remove the defaults.
You call also use the static:ignore
hook to mutate the array (useful for modules), ex:
nuxt.hook('static:ignore', (ignore) => ignore.push('content'))
cacheDir
string
{rootDir}/node_modules/.cache/nuxt
Overrides buildDir
globbyOptions
gitignore: true
Additional globby options for snapshot
yarn install
to install dependenciesyarn static
to run command on test fixtureFAQs
The fastest way to statically export your Nuxt application
The npm package @nuxt/static receives a total of 16,242 weekly downloads. As such, @nuxt/static popularity was classified as popular.
We found that @nuxt/static demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.