Socket
Book a DemoInstallSign in
Socket

@penpad/rollup-config

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@penpad/rollup-config

Builds a Rollup configuration for use in Penpad plugins. The `buildConfig` function gets you a Rollup config with some basic necessities:

latest
Source
npmnpm
Version
0.4.0-alpha.0
Version published
Maintainers
1
Created
Source

@penpad/rollup-config

Builds a Rollup configuration for use in Penpad plugins. The buildConfig function gets you a Rollup config with some basic necessities:

  • rollup-plugin-typescript2 for TypeScript support
  • rollup-plugin-react-svg for loading icons
  • rollup-plugin-postcss-modules for CSS modules support with PostCSS
  • postcss-import for @import support in CSS
  • postcss-preset-env for auto-prefixing and other new CSS features
  • postcss-apply for @apply support

Usage

Write a rollup.config.js for your plugin:

// rollup.config.js
import buildConfig from '@penpad/rollup-config'
import pkg from './package.json'

export default buildConfig({
  // Entry point
  input: 'src/index.tsx',
  pkg
})

Configure npm scripts for scripts.prepare:

/* package.json */
{
  "scripts": {
    "prepare": "rollup --config"
  }
}

FAQs

Package last updated on 12 Jun 2019

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