Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: webpack/webpack-dev-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: aa3cddcf6eb2347704870f0e0cf33bc211e2a378
Choose a base ref
...
head repository: webpack/webpack-dev-server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5280ee77c50e377feed82f454ba04218ecbbd422
Choose a head ref

Commits on Nov 27, 2020

  1. feat: next

    BREAKING CHANGE: yes
    hiroppy authored Nov 27, 2020
    2
    Copy the full SHA
    b0161e9 View commit details
  2. Copy the full SHA
    5e43c7b View commit details
  3. Copy the full SHA
    910133d View commit details

Commits on Nov 30, 2020

  1. Copy the full SHA
    08a83a6 View commit details
  2. Copy the full SHA
    cf15e24 View commit details
  3. Copy the full SHA
    26165f9 View commit details
  4. chore(deps): update dependency webpack to ^5.9.0 (#2871)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Nov 30, 2020
    Copy the full SHA
    143ce32 View commit details

Commits on Dec 1, 2020

  1. Copy the full SHA
    cee170c View commit details
  2. refactor: move overlay option to client (#2888)

    BREAKING CHANGE: the `overlay` option was moved into the `client` option
    hiroppy authored Dec 1, 2020
    Copy the full SHA
    763cde1 View commit details

Commits on Dec 2, 2020

  1. Copy the full SHA
    9e65c24 View commit details

Commits on Dec 3, 2020

  1. docs: fix typo (#2896)

    snitin315 authored Dec 3, 2020
    Copy the full SHA
    7f2275f View commit details
  2. Copy the full SHA
    247a92b View commit details

Commits on Dec 4, 2020

  1. chore(deps): update dependency execa to v5 (#2903)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Dec 4, 2020
    Copy the full SHA
    c4c5823 View commit details
  2. fix: default value of the static option is the static directory `…

    …path.join(process.cwd() + 'static')` (#2897)
    
    BREAKING CHANGE: default value of the `static` option is `path.resolve(process.cwd(), 'static')`, previously `process.cwd()`
    alexander-akait authored Dec 4, 2020
    Copy the full SHA
    b0ad9d8 View commit details

Commits on Dec 5, 2020

  1. fix: changed this.options.info to this.logger.info (#2910)

    Co-authored-by: Vasili Koval <vasiliy.koval@caspio.com>
    Xrumet and Vasiliy-Koval authored Dec 5, 2020
    Copy the full SHA
    f7724ce View commit details
  2. Copy the full SHA
    becbd85 View commit details
  3. chore(deps): update all minor dependencies (#2909)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Dec 5, 2020
    Copy the full SHA
    4666425 View commit details
  4. chore(deps): update all patch dependencies (#2908)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Dec 5, 2020
    1
    Copy the full SHA
    5588e9c View commit details

Commits on Dec 7, 2020

  1. chore(deps): update dependency husky to ^4.3.5 (#2917)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Dec 7, 2020
    Copy the full SHA
    385fc71 View commit details
  2. Copy the full SHA
    2a50946 View commit details

Commits on Dec 9, 2020

  1. chore(deps): update dependency webpack-merge to ^5.4.1 (#2921)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Dec 9, 2020
    Copy the full SHA
    3ea011f View commit details

Commits on Dec 10, 2020

  1. chore(deps): update dependency webpack-merge to ^5.5.0 (#2924)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Dec 10, 2020
    Copy the full SHA
    3b3e589 View commit details

Commits on Dec 11, 2020

  1. Copy the full SHA
    0800d0d View commit details

Commits on Dec 14, 2020

  1. chore(deps): update babel monorepo to ^7.12.10 (#2928)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Dec 14, 2020
    Copy the full SHA
    71a7da2 View commit details

Commits on Dec 15, 2020

  1. chore(deps): update all patch dependencies (#2923)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Dec 15, 2020
    Copy the full SHA
    34441b3 View commit details

Commits on Dec 16, 2020

  1. chore(deps): update all patch dependencies (#2931)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Dec 16, 2020
    Copy the full SHA
    e9b629f View commit details

Commits on Dec 18, 2020

  1. Copy the full SHA
    3225863 View commit details

Commits on Dec 28, 2020

  1. chore(deps): update dependency @babel/preset-env to ^7.12.11 (#2933)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Dec 28, 2020
    Copy the full SHA
    ca9e45d View commit details

Commits on Jan 3, 2021

  1. Copy the full SHA
    163bdce View commit details
  2. chore(deps): update all patch dependencies (#2952)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jan 3, 2021
    Copy the full SHA
    2dd1093 View commit details

Commits on Jan 4, 2021

  1. Copy the full SHA
    9e3a481 View commit details

Commits on Jan 10, 2021

  1. chore(deps): update all patch dependencies (patch) (#2956)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jan 10, 2021
    Copy the full SHA
    526721f View commit details

Commits on Jan 11, 2021

  1. Copy the full SHA
    b9ce07f View commit details
  2. Copy the full SHA
    5029dd6 View commit details

Commits on Jan 13, 2021

  1. Copy the full SHA
    788f2ba View commit details

Commits on Jan 18, 2021

  1. chore(deps): update dependency husky to ^4.3.8 (#2963)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Jan 18, 2021
    Copy the full SHA
    ae2de02 View commit details

Commits on Feb 3, 2021

  1. Copy the full SHA
    dbe7300 View commit details

Commits on Feb 5, 2021

  1. chore: fix CI (#2991)

    snitin315 authored Feb 5, 2021
    Copy the full SHA
    3b5076d View commit details

Commits on Feb 6, 2021

  1. Copy the full SHA
    828fdaa View commit details
  2. Copy the full SHA
    d33fdfa View commit details
  3. chore(deps): update all patch dependencies (#2976)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Feb 6, 2021
    Copy the full SHA
    b38c257 View commit details

Commits on Feb 9, 2021

  1. chore(deps): update dependency css-loader to ^5.0.2 (#2999)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Feb 9, 2021
    Copy the full SHA
    92a8aeb View commit details
  2. refactor: rename WEBPACK_DEV_SERVER env variable to WEBPACK_SERVE (

    …#3000)
    
    BRAKING CHANGE: the `WEBPACK_DEV_SERVER` env variable was renamed to `WEBPACK_SERVE`
    snitin315 authored Feb 9, 2021
    Copy the full SHA
    e6fb023 View commit details
  3. chore(deps): update babel monorepo (#2987)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Feb 9, 2021
    Copy the full SHA
    cf7d0cf View commit details

Commits on Feb 11, 2021

  1. ci: fix

    alexander-akait authored Feb 11, 2021
    Copy the full SHA
    89a7100 View commit details

Commits on Feb 12, 2021

  1. chore(deps): update babel monorepo to ^7.12.16 (#3007)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Feb 12, 2021
    Copy the full SHA
    4f1fec5 View commit details
  2. Copy the full SHA
    ebcdd98 View commit details
  3. refactor: use 'public' directory as default value for 'static' (#3005)

    BRAKING CHANGE: default `static` value is `public`
    snitin315 authored Feb 12, 2021
    Copy the full SHA
    713c5a6 View commit details
  4. chore(deps): update dependency marked to v2 [security] (#3001)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Feb 12, 2021
    Copy the full SHA
    b0868c3 View commit details
  5. test: fix (#3009)

    snitin315 authored Feb 12, 2021
    Copy the full SHA
    ad6619b View commit details
Showing 770 changed files with 91,385 additions and 35,105 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/client
/dist
!/test/client
coverage
client-src/live/web_modules/
node_modules
21 changes: 0 additions & 21 deletions .eslintrc

This file was deleted.

86 changes: 86 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
"use strict";

module.exports = {
extends: ["webpack", "prettier"],
parser: "@babel/eslint-parser",
parserOptions: {
sourceType: "script",
ecmaVersion: 2018,
},
reportUnusedDisableDirectives: true,
env: {
node: true,
es6: true,
},
rules: {
curly: "error",
"consistent-return": "off",
"no-param-reassign": "off",
"no-underscore-dangle": "off",
"prefer-destructuring": ["error", { object: false, array: false }],
"prefer-rest-params": "off",
strict: ["error", "safe"],
"global-require": "off",
"spaced-comment": [
"error",
"always",
{
line: {
exceptions: ["-", "+"],
markers: ["=", "!", "/"],
},
block: {
exceptions: ["-", "+"],
markers: ["=", "!"],
balanced: false,
},
},
],
},
overrides: [
{
files: ["client-src/**/*.js"],
excludedFiles: [
"client-src/webpack.config.js",
"client-src/modules/logger/SyncBailHookFake.js",
],
parserOptions: {
sourceType: "module",
allowImportExportEverywhere: true,
},
env: {
browser: true,
},
rules: {
"import/extensions": ["error", "always"],
},
},
{
files: ["test/**/*.js"],
rules: {
"no-console": "off",
},
},
{
files: [
"test/client/**/*.js",
"test/e2e/**/*.js",
"test/fixtures/**/*.js",
"test/server/liveReload-option.test.js",
],
env: {
browser: true,
node: true,
},
},
{
files: ["examples/**/*.js"],
env: {
browser: true,
},
rules: {
"no-console": "off",
},
},
],
};
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @evilebottnawi @hiroppy @Loonride
* @alexander-akait @hiroppy @Loonride @snitin315 @anshumanv
11 changes: 4 additions & 7 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -6,13 +6,6 @@
General questions, how-to questions, and support requests will be closed.
-->

- Operating System:
- Node Version:
- NPM Version:
- webpack Version:
- webpack-dev-server Version:
- Browser:

<!--
Please place an x, no spaces, in all [ ] that apply
Please note that we are NOT accepting FEATURE requests at this time.
@@ -45,10 +38,14 @@
// additional code, remove if not needed.
```

### Please paste the results of `npx webpack-cli info` here, and mention other relevant information

### Expected Behavior

### Actual Behavior

### For Bugs; How can we reproduce the behavior?

<!-- See https://stackoverflow.com/help/minimal-reproducible-example for information on how to create good reproductions -->

### For Features; What is the motivation and/or use-case for the feature?
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: 🐛 Bug Report
about: Something went awry and you'd like to tell us about it.
---

<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->

### Bug report

<!-- Please ask questions on discussions, StackOverflow or the webpack Gitter. -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Actual Behavior

<!-- Explain exactly how it behave -->

### Expected Behavior

<!-- "It should work" is not a helpful explanation -->
<!-- Explain exactly how it should behave -->

### How Do We Reproduce?

<!-- A great way to do this is to provide your configuration via a GitHub repository -->
<!-- The most helpful is a minimal reproduction with instructions on how to reproduce -->
<!-- Repositories with too many files or large `webpack.config.js` files are not suitable -->
<!-- Please only add small code snippets directly into this issue -->
<!-- https://gist.github.com is a good place for longer code snippets -->
<!-- If your issue is caused by a plugin or loader, please create an issue on the loader/plugin repository instead -->

### Please paste the results of `npx webpack-cli info` here, and mention other relevant information
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/DOCS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: 📚 Documentation
about: Are the docs lacking or missing something? Do they need some new 🔥 hotness? Tell us here.
---

<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->

Documentation Is:

<!-- Please place an x (no spaces!) in all [ ] that apply -->

- [ ] Missing
- [ ] Needed
- [ ] Confusing
- [ ] Not Sure?

### Please Explain in Detail...

<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Your Proposal for Changes
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: ✨ Feature Request
about: Suggest an idea for this project
---

<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->

### Feature Proposal

<!-- Please ask questions on discussions, StackOverflow or the webpack Gitter. -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Feature Use Case

### Please paste the results of `npx webpack-cli info` here, and mention other relevant information
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/MODIFICATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: 🔧 Modification Request
about: Would you like something work differently? Have an alternative approach? This is the template for you.
---

<!-- Please don't delete this template otherwise your issue will be closed immediately -->
<!-- Before creating an issue please make sure you are using the latest version of webpack. -->

### Modification Proposal

<!-- Please ask questions on discussions, StackOverflow or the webpack Gitter. -->
<!-- https://github.com/webpack/webpack/discussions -->
<!-- https://stackoverflow.com/questions/ask?tags=webpack -->
<!-- https://gitter.im/webpack/webpack -->
<!-- Issues which contain questions or support requests will be closed. -->

### Expected Behavior / Situation

### Actual Behavior / Situation

### Please paste the results of `npx webpack-cli info` here, and mention other relevant information
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: 🆘 Support, Help, and Advice
about: 👉🏽 Need support, help, or advice? Don't open an issue! Head to https://github.com/webpack/webpack/discussions, StackOverflow or https://gitter.im/webpack/webpack.
---

Hey there! If you need support, help, or advice then this is not the place to ask.
Please visit [Discussions](https://github.com/webpack/webpack/discussions), [StackOverflow](https://stackoverflow.com/questions/tagged/webpack)
or [the Webpack Gitter](https://gitter.im/webpack/webpack) instead.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "04:00"
timezone: Europe/Berlin
open-pull-requests-limit: 10
versioning-strategy: lockfile-only
111 changes: 111 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: webpack-dev-server

on:
push:
branches:
- master
- next
- v4
pull_request:
branches:
- master
- next
- v4

jobs:
lint:
name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }}

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Use latest NPM
run: sudo npm i -g npm

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Security audit
run: npm audit --production

- name: Check commit message
uses: wagoid/commitlint-github-action@v4

test:
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [12.x, 14.x, 16.x, 17.x]
webpack-version: [4, latest]
exclude:
- node-version: 17.x
webpack-version: 4

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"

- name: Use latest NPM on ubuntu/macos
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: sudo npm i -g npm

- name: Use latest NPM on windows
if: matrix.os == 'windows-latest'
run: npm i -g npm

- name: Use latest NPM on windows
if: matrix.webpack-version == 4
run: sed -i'.original' 's/"build:types"/"_unused"/g' package.json

- name: Install dependencies
run: npm ci

- name: Install webpack ${{ matrix.webpack-version }}
if: matrix.webpack-version == '4'
run: npm i webpack@${{ matrix.webpack-version }} --save-dev --ignore-scripts

- name: Link webpack-dev-server
run: |
cp -R client tmp-client
npm link --ignore-scripts
npm link webpack-dev-server --ignore-scripts
rm -r client
cp -R tmp-client client
- name: Run tests for webpack version ${{ matrix.webpack-version }}
run: npm run test:coverage -- --ci

- name: Submit coverage data to codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
Loading