Skip to content

kirillsud/sync-saver-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sync Saver Webpack Plugin

npm version Dependency Status bitHound Score

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.

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.

About

Sync saver webpack plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published