Skip to content

Compiling takes ~50s in development #1948

@kapso

Description

@kapso

Any change (small or big) takes 50 seconds to compile.

My development environment -

  • Running rails s and bin/webpack-dev-server in separate terminals.
  • I kept getting out of heap/memory when compiling, so I added this for the webpack dev server export NODE_OPTIONS="--max-old-space-size=3048"
  • Using gem 'webpacker', '4.0.0.rc.7' and "@rails/webpacker": "4.0.0-rc.7" and "webpack-dev-server": "3.1.14"
  • Node version 11.10.0
  • Visual Studio Code - Version 1.31.1 (1.31.1)
  • This is on macOS Mojave

Rails version: 5.2.2
Ruby version: 2.6.1

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