Skip to content

webpack dev server not recompiling certain files when they are changed #724

@cchrysostomou

Description

@cchrysostomou

I am having a weird issue with my current webpack dev server configuration. The issue seems to be with my entry points. If I am defining entry points using {key: values}, then for some reason , if one of my entry points is deeply nested (found in many subfolders), the webpack server does not seem to recompile those files when I have changed them.

Here is an example of a configuration setup for my entry points

entry: {
    App2Doesnotrecompile: './reactjs/subfolder/sub/sub/app2',
    App1: './reactjs/app1',
    App3: './reactjs/subfolder/sub/app3'
  },

In the example above, if i make changes to the files in App1 or App3 then the webserver recompiles and shows me if any errors occurred; but if i make changes to the file in app2 then the webserver does not seem to register any changes.

I am not sure if this is an issue or something wrong with my configuration.

I am currently using ubuntu 16.04.

The following is a non-detailed version of my configuration file

{
  context: __dirname,

  entry: {
     App2Doesnotrecompile: './reactjs/subfolder/sub/sub/app2',
    App1: './reactjs/app1',
    App3: './reactjs/subfolder/sub/app3'
  },

  output: {
      path: path.resolve('./djreact/static/bundles/local/'),
      filename: "[name]-[hash].js",
  },

  externals: [
  ], 

  plugins: [
  ], 

  module: {
    loaders: [] // add all common loaders here
  },

  resolve: {
    modulesDirectories: ['node_modules', 'bower_components'],
    extensions: ['', '.js', '.jsx']
  },
}

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