0.0.3 • Published 9 years ago
sync-saver-webpack-plugin v0.0.3
Sync Saver Webpack Plugin ===================
This is a webpack plugin that makes synchronous saving of generated assets. Tehnicaly plugin just replaces origin outputFileSystem.writeFile method by fs.writeFileSync.
Installation
Install the plugin with npm:
$ npm install sync-saver-webpack-plugin --save-dev
Basic Usage
Just add the plugin to your webpack config as follows:
var SyncSaverWebpackPlugin = require('sync-saver-webpack-plugin')
var webpackConfig = {
entry: 'index.js',
output: {
path: 'dist',
filename: 'index_bundle.js'
},
plugins: [new SyncSaverWebpackPlugin()]
}
Configuration
You can pass a hash of configuration options to SyncSaverWebpackPlugin
.
Allowed values are as follows:
debug
: Enables verbose output in the webpack console.