webpack-fs-dev-server

1.0.0 • Public • Published

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')
  }
};

Readme

Keywords

none

Package Sidebar

Install

npm i webpack-fs-dev-server

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

11 kB

Total Files

10

Last publish

Collaborators

  • yo_waka