preact-cli icon indicating copy to clipboard operation
preact-cli copied to clipboard

Build output doesn't match development build / watch

Open UbiquitousBear opened this issue 5 years ago • 4 comments

Do you want to request a feature or report a bug? A Bug

What is the current behaviour? Build output does not match development output. Specifically website is not responsive.

If the current behaviour is a bug, please provide the steps to reproduce.

  • Checkout this git repository
  • Run npm run build
  • Run npm run dev

Run both in a browser and attempt to resize the window to match a mobile configuration. The dev build is responsive, whilst the production build is not.

What is the expected behaviour? Build output should both be responsive.

If this is a feature request, what is motivation or use case for changing the behaviour?

Please mention other relevant information.

Please paste the results of preact info here.

Environment Info:
  System:
    OS: macOS 10.15.4
    CPU: (24) x64 Intel(R) Xeon(R) W-3235 CPU @ 3.30GHz
  Binaries:
    Node: 13.2.0 - /usr/local/bin/node
    npm: 6.14.1 - /usr/local/bin/npm
  Browsers:
    Chrome: 80.0.3987.149
    Firefox: 72.0.2
    Safari: 13.1
  npmPackages:
    preact: ^10.3.4 => 10.3.4
    preact-cli: ^3.0.0-rc.10 => 3.0.0-rc.10
    preact-render-to-string: ^5.0.6 => 5.1.4
    preact-router: ^3.0.1 => 3.2.1
  npmGlobalPackages:
    preact-cli: 3.0.0-rc.10

UbiquitousBear avatar Apr 01 '20 10:04 UbiquitousBear

This is likely due to Critters. Can you try with the most recent preact-cli version? It has been updated to Critters V2.

developit avatar May 08 '20 12:05 developit

@developit I see the latest is 3.0.0-rc.10?

UbiquitousBear avatar May 10 '20 11:05 UbiquitousBear

Ah yes, apologies. I also missed that you provided a reproduction.

developit avatar May 10 '20 17:05 developit

@developit were you able to have a look?

UbiquitousBear avatar May 25 '20 03:05 UbiquitousBear