https://github.com/zhangchiqing/simple-webpack-server
Simplified webpack-web-server to debug your module
https://github.com/zhangchiqing/simple-webpack-server
Last synced: 4 months ago
JSON representation
Simplified webpack-web-server to debug your module
- Host: GitHub
- URL: https://github.com/zhangchiqing/simple-webpack-server
- Owner: zhangchiqing
- License: mit
- Created: 2016-02-14T23:37:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-24T03:55:12.000Z (about 8 years ago)
- Last Synced: 2025-02-16T03:05:44.737Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Webpack Server
This server should be used for DEVELOPMENT ONLY.
The simple-webpack-server is a little node.js app which uses webpack-dev-server to serve your module for easy development and debugging.
- It automatically generates the html file needed for webpack-dev-server to serve your module (For example, a ReactJS component).
- Supports CommonJS style javascript module.
- Updates the browser on changes.
- CSS loader included.
- Source mapping enabled.
- No need to create webpack.config.js## Get started
```
npm install --save-dev webpack
npm install --save-dev webpack-dev-server
npm install --save-dev simple-webpack-server
```## Usage
### 1. Create a file `debugging.js`
```
var simpleWebpackServer = require('simple-webpack-server');simpleWebpackServer({
entry: __dirname + '/src/myModule.js',
output: __dirname + '/bundle/',
title: 'myModule',
});```
### 2. Run
```
node debugging.js
```### 3. Visit `http://localhost:8087/` to view your module
## Licensing
MIT