Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

edp-build-cdn

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edp-build-cdn

Processor for edp-build to add cdn support.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

edp-build-cdn

Build Status Coverage Downloads Downloads npm version dependencies dev dependencies License

Processor for edp-build to add cdn support.

Getting Started

Install it via npm:

npm install edp-build-cdn

And include in your project:

import CDNProcessor from 'edp-build-cdn';

let CDNProcessor = require('edp-build-cdn').default;

let processor = new CDNProcessor({
    name: 'CDNProcessor',
    // cdn加速域名
    domain: '//xxx.xxcdn.com',
    // cdn上的资源
    resourceTypes: '*.{js,css,png}',
    // 部署目录
    dist: 'app',
    // 需要处理的文件类型,目前仅支持html
    files: [
        '*.html'
    ],
    // 是否需要在html head中增加cdn域名的prefetch
    enableDNSPrefetch: true
});

License

MIT

FAQs

Package last updated on 09 Feb 2017

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