New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@builder.io/dev-tools

Package Overview
Dependencies
Maintainers
12
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@builder.io/dev-tools

Builder.io Visual CMS Dev Tools

  • 0.0.24
  • npm
  • Socket score

Version published
Weekly downloads
15K
increased by15.47%
Maintainers
12
Weekly downloads
 
Created
Source

Builder.io Visual CMS Dev Tools

Setup and integrate Builder.io Visual CMS during development using the Dev Tools plugin. Dev Tools is integrated with a project's development through either a Vite plugin, or Webpack plugin.

Install Dev Tools

npm install -D @builder.io/dev-tools

Next step is to add the Dev Tools plugin to your build tool's config file. For example, if you're using Next.js, see the docs below on how to import and add the Dev Tools plugin to a Next.js app.

Next.js

Dev Tools with Next.js uses the webpack plugin added within the next.config.js file. Import BuilderDevToolsPlugin from @builder.io/dev-tools/webpack and add it to next's webpack config plugins array.

// next config file
const { BuilderDevToolsPlugin } = require("@builder.io/dev-tools/webpack");

const nextConfig = {
  webpack: (config) => {
    config.plugins.push(new BuilderDevToolsPlugin());
    return config;
  },
};

module.exports = nextConfig;

Vite

The Vite plugin for Dev Tools is meant for frameworks using Vite for its development. Currently, Dev Tools supports Qwik integrated with Vite. Import builderDevTools from @builder.io/dev-tools/vite and place it as the the first plugin to ensure it runs before others.

// vite config file
import { defineConfig } from "vite";
import { builderDevTools } from "@builder.io/dev-tools/vite";

export default defineConfig(() => {
  return {
    plugins: [builderDevTools()],
  };
});

Webpack

The Dev Tools webpack plugin is for React projects. If your project is using Next.js, please see the Next.js docs above on how to add the Dev Tools plugin to the next config. Below is a general webpack config for a React project.

// webpack config file
const { BuilderDevToolsPlugin } = require("@builder.io/dev-tools/webpack");

module.exports = {
  plugins: [new BuilderDevToolsPlugin()],
};

Keywords

FAQs

Package last updated on 13 Jul 2023

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc