New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

file-plugin-ykl

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

file-plugin-ykl

file webpack plugin

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

安装

  npm i file-plugin-ykl --save

使用

vue.config.js

    config.externals({
      vue: 'Vue',
      'vue-router': 'VueRouter',
      vuex: 'Vuex',
      'element-ui': 'ELEMENT'
    })
    // 自定义filePlugin
    config.plugin('filePlugin').after('html').use(filePugin, [
      {
        // extract: true,
        jsPaths: [
          'https://cdn.bootcdn.net/ajax/libs/vue/3.0.2/vue.cjs.prod.js',
          'https://cdn.bootcdn.net/ajax/libs/vue-router/3.4.8/vue-router.common.min.js',
          'https://cdn.bootcdn.net/ajax/libs/vuex/4.0.0-rc.1/vuex.cjs.min.js',
          'https://cdn.bootcdn.net/ajax/libs/element-ui/2.14.1/index.min.js'
        ],
        cssPaths: [
          'https://cdn.bootcdn.net/ajax/libs/element-ui/2.14.1/theme-chalk/index.css'
        ]
      }
    ])

FAQs

Package last updated on 18 Dec 2020

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