lijialiang / fs-copy-webpack-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fs-copy-webpack-plugin

Install

npm i fs-copy-webpack-plugin --save-dev

# or

yarn add fs-copy-webpack-plugin --dev

How to use

// webpack.config
module.exports = {
  plugin: [
    new FsCopyWebpackPlugin({
      root: __dirname,
      src: 'src',
      dist: 'dist',
      files: {
        'a.png': 'b.png'
      }
    })
  ]
}

./src/a.png will cope to ./dist/b.png

About

License:MIT License


Languages

Language:JavaScript 100.0%