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

@parcel/config-default

Package Overview
Dependencies
Maintainers
1
Versions
899
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/config-default

  • 2.13.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is @parcel/config-default?

@parcel/config-default is a default configuration package for Parcel, a web application bundler. It provides a set of default plugins and settings that Parcel uses to bundle various types of assets like JavaScript, CSS, HTML, and more. This package simplifies the setup process by providing a pre-configured environment that works out of the box for most projects.

What are @parcel/config-default's main functionalities?

JavaScript Bundling

This configuration uses the default Parcel config to bundle JavaScript files using the Babel transformer. It ensures that modern JavaScript syntax is transpiled to be compatible with older browsers.

{
  "extends": "@parcel/config-default",
  "transformers": {
    "*.js": [
      "@parcel/transformer-babel"
    ]
  }
}

CSS Bundling

This configuration uses the default Parcel config to bundle CSS files using the PostCSS transformer. It allows for the use of modern CSS features and plugins.

{
  "extends": "@parcel/config-default",
  "transformers": {
    "*.css": [
      "@parcel/transformer-postcss"
    ]
  }
}

HTML Bundling

This configuration uses the default Parcel config to bundle HTML files. It processes HTML files to include dependencies like scripts and stylesheets.

{
  "extends": "@parcel/config-default",
  "transformers": {
    "*.html": [
      "@parcel/transformer-html"
    ]
  }
}

Asset Optimization

This configuration uses the default Parcel config to optimize JavaScript and CSS files using Terser and CSSNano respectively. It helps in reducing the file size for production builds.

{
  "extends": "@parcel/config-default",
  "optimizers": {
    "*.js": [
      "@parcel/optimizer-terser"
    ],
    "*.css": [
      "@parcel/optimizer-cssnano"
    ]
  }
}

Other packages similar to @parcel/config-default

FAQs

Package last updated on 16 Dec 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

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