Socket
Socket
Sign inDemoInstall

edp-build-cdn

Package Overview
Dependencies
318
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    edp-build-cdn

Processor for edp-build to add cdn support.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
29.3 MB
Created
Weekly downloads
 

Readme

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

Last updated on 09 Feb 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc