Skip to content
feiyang0117Public

About

npm install copy-link,为webpack copy组件配置而生

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

  1. webpack 中因为配置额外的打包链接到 dist 目录
  2. eg: var CopyLinkWebpackPlugin = require('copy-links');

<<<<<<< HEAD const CopyLink = require('copy-links')

plugins: [ new CopyLink({ arrLinks:['./../xxx.js'], name: "/dist" }) ]

  1. 代码片段
var webpackConfig = {
    // ... 这里是引用配置 ...
    ...
    plugins: [
        new CopyLinkWebpackPlugin({
            to: __dirname + '/dist',
            from: __dirname + '/copy'
        })
    ]
};

16ab660749ac762e2cc8c4aaa4f7da1b5d3bf5e4

About

npm install copy-link,为webpack copy组件配置而生

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages