@wxa/plugin-copy

2.5.1 • Public • Published

😊😊😊😊Documentation

Usually, dynamic path like path/to/dir/{{boo}}.png, @wxa/cli wouldn't resolve all files for it. So we need to copy this kind of static assets from project to build dist directory. That what CopyPlugin for.

Usage

{
    context: path.resolve(__dirname, 'src'),
    plugins: [
        new CopyPlugin({
            from: './static', // relative to process.cwd
            to: 'static',  // dist dir name
            ignore: ['a.png']
        })
    ]
}

Readme

Keywords

Package Sidebar

Install

npm i @wxa/plugin-copy

Weekly Downloads

0

Version

2.5.1

License

MIT

Unpacked Size

4.54 kB

Total Files

5

Last publish

Collaborators

  • genuifx
  • zehuiguan
  • lucaszhu
  • fanniehuang
  • baoooooo