write-file-webpack-plugin
Forces webpack-dev-server
program to write bundle files to the file system.
This plugin has no effect when webpack
program
is used instead of webpack-dev-server
.
Install
npm install write-file-webpack-plugin --save-dev
API
/** * @typedef * @property * @property * @property * @property * @property * @property */ /** * @param * @returns */; // Write only files that have ".css" extension. test: /\.css$/ useHashIndex: true;
Usage
Configure webpack.config.js
to use the write-file-webpack-plugin
plugin.
;; output: path: path plugins: // ...
See ./sandbox for a working webpack
configuration.