You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * @typedef {Object} options * @property {boolean} atomicReplace Atomically replace files content (i.e., to prevent programs like test watchers from seeing partial files) (default: true). * @property {boolean} exitOnErrors Stop writing files on webpack errors (default: true). * @property {boolean} force Forces the execution of the plugin regardless of being using `webpack-dev-server` or not (default: false). * @property {boolean} log Logs names of the files that are being written (or skipped because they have not changed) (default: true). * @property {RegExp} test A regular expression used to test if file should be written. When not present, all bundle will be written. * @property {boolean} useHashIndex Use hash index to write only files that have changed since the last iteration (default: true). *//** * @param {options} options * @returns {Object} */newWriteFilePlugin();newWriteFilePlugin({// Write only files that have ".css" extension.test: /\.css$/,useHashIndex: true});
Usage
Configure webpack.config.js to use the write-file-webpack-plugin plugin.