All Projects → unfold → Webpack Serve

unfold / Webpack Serve

Takes your webpack config and creates a development server with hot module reloading and error overlay

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Webpack Serve

Cra Build Watch
A script for create-react-app that writes development builds to the disk
Stars: ✭ 110 (-37.85%)
Mutual labels:  webpack, create-react-app, development
Easywebpack Cli
A Powerful Cross-platform Webpack CLI Tool
Stars: ✭ 110 (-37.85%)
Mutual labels:  webpack, cli
Cjstoesm
A tool that can transform CommonJS to ESM
Stars: ✭ 109 (-38.42%)
Mutual labels:  webpack, cli
React Redux Auth0 Kit
Minimal starter boilerplate project with CRA, React, Redux, React Router and Auth0 authentication
Stars: ✭ 115 (-35.03%)
Mutual labels:  webpack, create-react-app
Cli
Upload your templates to codesandbox with a single command 🏖️. This repo has been moved here: https://github.com/codesandbox-app/codesandbox-importers/tree/master/packages/cli
Stars: ✭ 104 (-41.24%)
Mutual labels:  cli, create-react-app
Conf
Landing page for event React Conf Brazil
Stars: ✭ 104 (-41.24%)
Mutual labels:  webpack, create-react-app
Nutmeg
Build, test, and publish vanilla Web Components with a little spice
Stars: ✭ 111 (-37.29%)
Mutual labels:  webpack, cli
Angular Librarian
An Angular 2+ scaffolding setup for creating libraries
Stars: ✭ 92 (-48.02%)
Mutual labels:  webpack, cli
Mhy
🧩 A zero-config, out-of-the-box, multi-purpose toolbox and development environment
Stars: ✭ 128 (-27.68%)
Mutual labels:  webpack, cli
Expo Cli
Tools for creating, running, and deploying universal Expo and React Native apps
Stars: ✭ 1,993 (+1025.99%)
Mutual labels:  webpack, cli
Micro Starter
[Deprecated] 🔷 Basic (opinionated) starter kit for a micro app with webpack build
Stars: ✭ 144 (-18.64%)
Mutual labels:  webpack, cli
Webpack Format Messages
Beautiful formatting for Webpack messages; ported from Create React App!
Stars: ✭ 103 (-41.81%)
Mutual labels:  webpack, create-react-app
Sambell
wake me when it's quitting time
Stars: ✭ 101 (-42.94%)
Mutual labels:  webpack, create-react-app
Wordless
All the power of Pug, Sass, Coffeescript and WebPack in your WordPress theme. Stop writing themes like it's 1998.
Stars: ✭ 1,374 (+676.27%)
Mutual labels:  webpack, development
Cordova Create React App
A tutorial on how to set up a Cordova project using Create React App.
Stars: ✭ 167 (-5.65%)
Mutual labels:  webpack, create-react-app
Generact
Generate React components by replicating your own
Stars: ✭ 1,471 (+731.07%)
Mutual labels:  cli, create-react-app
Kit
Tools for developing, documenting, and testing React component libraries
Stars: ✭ 1,201 (+578.53%)
Mutual labels:  cli, development
Cra Generate
Scaffold a React component.
Stars: ✭ 78 (-55.93%)
Mutual labels:  cli, create-react-app
Create Elm App
🍃 Create Elm apps with zero configuration
Stars: ✭ 1,650 (+832.2%)
Mutual labels:  webpack, cli
Python Sploitkit
Devkit for building Metasploit-like consoles
Stars: ✭ 148 (-16.38%)
Mutual labels:  cli, development

Webpack Serve

Takes your webpack config and creates a development server with hot module reloading and error overlay. Built to resemble the experience you get from create-react-app.

Install

npm install --save-dev @unfold/webpack-serve

Usage

In the terminal

Either run $(npm bin)/webpack-serve at the root of your project, or add a "serve": "webpack-serve", to your package.json scripts. All arguments given are passed over to the webpack CLI.

With own express/connect backend

You can import and configure it with your own middleware or server.

import webpackServe from '@unfold/webpack-serve'
import config from '../webpack.config'
import server from './server'

webpackServe(config, {
  server,
  port: 5050,
})

Options

name description default value
port Port used for server 8080
hostname Used by webpack and when opening the application in the browser on start localhost
contentBase Which folder to serve static content from /public
https Serves content with SSL false

Pass them to webpackServe(config, { ...options }) or use PORT=5000 HTTPS=true webpack-serve in the terminal.

Quick example

mkdir my-app && cd my-app
echo "alert('🤓')" > index.js
mkdir public && echo "<script src=build.js></script>" > public/index.html
npm install @unfold/webpack-serve
$(npm bin)/webpack-serve index.js build.js

Copy the above code and run it in your terminal and you'll have a new app up and running. When you want to add webpack loaders or similar, use the webpack CLI options or add a webpack.config.js file.

Example screenshots from console and error overlay

screenshot showing compiled successfully screenshot showing warnings screenshot showing error screenshot showing error overlay

Credits

This project is using multiple utilities from react-dev-utils and the console look is shamelessly copied from the create-react-app console.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].