Webpack filesystem plugin
Filesystem wrapper
Install Instructions
$ npm i webpack-filesystem-plugin
Note: This plugin needs NodeJS >= 6
Usage Instructions
Require webpack-filesystem-plugin
var WebpackFilesystem =
Add the plugin to your plugin list
var config = plugins: action: 'cp' source: 'test.txt' dist: 'awesome.txt'
Options
Actions
Common options
silent
(bool): Display/hide info logsbuildTrigger
(string): Webpack build step (c.f plugin documentation). See below accepted steps:after-emit
done
failed
Use silent mode
var config = plugins: silent: true action: 'cp' source: 'test.txt' dist: 'awesome.txt'
logLevel
- Type:
String
- Default:
strict
- Allowed value:
strict
,log
,none
strict
: catch errors in an exception, the webpack build crasheslog
: log errors in a log file (warning.log
) and none behaviornone
: show errors in console (when silent mode is off)
Specify behavior when the plugin fail.
Example:
var config = plugins: silent: true action: 'cp' source: 'test.txt' dist: 'awesome.txt' logLevel: 'log' ...
Contributing
All contributions are welcome. Please make a pull request and make sure things still pass after running npm test