Skip to content

[WDS] Nothing changed. #850

Closed
Closed
@aep

Description

@aep
const path = require('path');
module.exports = {
    devServer: {
        contentBase: path.join(__dirname, "dist")
    },
    entry: './src/app.js',
    output: {
        path:       path.join(__dirname, 'dist'),
        filename:   'bundle.js'
    }
};

app.js is empty.
When i now add random garbage to app.js (be it correct syntax or not), dev-server correctly spots the change and starts compiling, but apparantly not the file i just saved.

webpack: Compiling...
Hash: 5a194bf652a9d1f48771
Version: webpack 2.2.1
Time: 33ms
chunk    {0} bundle.js (main) 300 kB [entry]
   [36] ./src/app.js 60 bytes {0} [built]
     + 85 hidden modules
webpack: Compiled successfully.

the hash does not change, no matter what i put in app.js

and chrome dev console says:
[WDS] Nothing changed.

and manually GETing /bundle.js shows its still serving the old file.

However, when i just restart the server, the hash changes and the new content is used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions