This is a webpack plugin that makes synchronous saving of generated assets. This plugin will be usefull for builds on Windows, when you use generated assets in future build steps. Tehnicaly plugin just replaces origin outputFileSystem.writeFile method by fs.writeFileSync.
Install the plugin with npm:
$ npm install sync-saver-webpack-plugin --save-dev
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()]
}
You can pass a hash of configuration options to SyncSaverWebpackPlugin
.
Allowed values are as follows:
debug
: Enables verbose output in the webpack console.