Transfer Webpack Plugin
Transfer files to the build directory
Getting started
Install the plugin:
npm install --save-dev transfer-webpack-plugin
API
patterns: array basePath: string
patterns
– array of patterns{ from: 'path', to: 'path' }
,from
– relative tobasePath
or tocontext
of your config (ifbasePath
is not exists),to
– relative to the build directorybasePath
(optional) – directory to be resolved tofrom
parameter
Usage
var TransferWebpackPlugin = ; moduleexports = context: path plugins: from: 'i18n' to: 'i18n' from: 'root' ; moduleexports = plugins: from: 'i18n' to: 'i18n' from: 'root' path ;