nimblehq / elixir-templates

Our optimized Elixir templates used in our projects
https://nimblehq.co
MIT License
86 stars 6 forks source link

Fix: Error when generating the web variant #312

Closed nvminhtue closed 1 year ago

nvminhtue commented 1 year ago

Issue

Extracting the bundle from nimble_template v4.5.0 got an error of not resolving the postcss-scss image and can't read some tests image That leads to the interruption when running the mix nimble_template.gen --web script.

Expected

The generation script should be run flawlessly.

Steps to reproduce

  1. Run mix archive.install hex phx_new
  2. Initialize the phoenix project mix phx.new awesome_project
  3. Add {:nimble_template, "~> 4.5.0", only: :dev, runtime: false} to the mix deps
  4. Compile packages mix do deps.get, deps.compile
  5. Generate the variant web by mix nimble_template.gen --web
liamstevens111 commented 1 year ago

The file read errors should be fixed when 4.6 is released to hex.pm (you can also instead download the 4.6 version template locally and reference it in mix.exs instead).

Not sure on the postcss part though

andyduong1920 commented 1 year ago

@nvminhtue could you help to verify this issue again 🙏, we have just released the 4.6.0

nvminhtue commented 1 year ago

@andyduong1920 @liamstevens111 It's working as expected now; thank you, guys.