New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@htmlcomponents/create

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@htmlcomponents/create

Create a project with HTML components

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
2
Created
Source

HTML Components

Create a project with HTML components.

Pre-alpha!

npx @htmlcomponents/create

Installs Vite and postCSS.

Run with Vite

cd path/to/new/project
npm run dev

# or
npm run build
npm run preview

To run with no build system (i.e. without Vite)

Copy /public/import and /public/assets to the root directory of new project.

In VS Code, use an extension like Live Server.

Right-click index.html at root of new project and select "Open with Live Server.

If using Live Server, be sure that your new project is at the top level of the current VS Code workspace, not in a subfolder of the workspace.

Vite-html-import-plugin

Vite-html-import-plugin transforms HTML by removing and replacing custom elements whose source files are in the public directory.

Without this plugin, html-import will import its content at run time.

vite.config.js:

import { defineConfig } from "vite";

import viteHTMLImportPlugin from "./components/imports/viteHTMLImportPlugin/viteHTMLImportPlugin";

export default defineConfig({
  plugins: [viteHTMLImportPlugin()],
});

FAQs

Package last updated on 11 Jan 2024

Did you know?

Socket

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