Socket
Socket
Sign inDemoInstall

nuxt-singlefile

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nuxt-singlefile

Build your Nuxt app into a single HTML file


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

v0.0.1

🚀 Enhancements

  • First commit (d237c7c)
  • Generate single file build with module (8038092)
  • Add routing to playground (7e3c03c)
  • Add tests (5b90de6)

🏡 Chore

❤️ Contributors

  • Nathanaël Labreuil

Readme

Source

Nuxt Single File

npm version npm downloads License Nuxt

Build your Nuxt app into a single HTML file by inlining all your CSS and JavaScript.

Motivation

This module has been heavily inspired by vite-plugin-singlefile, and aims to provide the same functionality for Nuxt. It is currently in a very early stage, and is not recommended for production use.

Quick Setup

  1. Add nuxt-singlefile dependency to your project
# Using pnpm
pnpm add -D nuxt-singlefile

# Using yarn
yarn add --dev nuxt-singlefile

# Using npm
npm install --save-dev nuxt-singlefile
  1. Add nuxt-singlefile to the modules section of nuxt.config.ts
export default defineNuxtConfig({
	modules: ["nuxt-singlefile"],
});

That's it! You can now use Nuxt Single File in your Nuxt app ✨

Development

# Install dependencies
pnpm install

# Generate type stubs
pnpm run dev:prepare

# Develop with the playground
pnpm run dev

# Build the playground
pnpm run dev:build

# Run ESLint
pnpm run lint

# Run Vitest
pnpm run test
pnpm run test:watch

# Release new version
pnpm run release

FAQs

Last updated on 28 Jan 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc