webpack-fs-dev-server

v1.0.0
Build with local file.

webpack-fs-dev-server

webpack-dev-server is very heavy because it loads all files into memory.

A solution to the following:

  • Read contents from disk (not from memory)
  • Use webpack watch

Installation

$ npm install webpack-fs-dev-server

Usage

"scripts": {
  "watch": "webpack-fs-dev-server --watch --mode development"
}

Options in webpack.config.js

const path = require('path');

module.exports = {
  devServer: {
    host: 'localhost',
    port: 8888
    contentBase: path.resolve(__dirname, 'dist')
  }
};
npm i webpack-fs-dev-server

Metadata

  • MIT
  • Whatever
  • yo_waka
  • released 2/11/2020

Downloads

Maintainers