@gluons/vue-pack-copy-plugin
v1.20.3
Published
A vue-pack plugin to copy files or directories to build directory.
Downloads
20
Maintainers
Readme
vue-pack-copy-plugin
A vue-pack plugin to copy files or directories to build directory via Copy Webpack Plugin.
Installation
Require vue-pack.
npm install --save-dev @gluons/vue-pack
# or
yarn add --dev @gluons/vue-pack
Then install this plugin.
npm install --save-dev @gluons/vue-pack-copy-plugin
# or
yarn add --dev @gluons/vue-pack-copy-plugin
Usage
Add this plugin into vue-pack
config.
vue-pack.config.js
const copy = require('@gluons/vue-pack-copy-plugin');
const patterns = [
'path/to/source',
{ from: 'glob/path/*', to: 'dest/path' }
];
module.exports = {
plugins: [
copy(patterns)
]
};
Patterns are the same as Copy Webpack Plugin's Pattern.