tricknotes / ember-cli-rails

Unify your EmberCLI and Rails Workflows
http://thoughtbot.github.io/ember-cli-rails/
MIT License
713 stars 205 forks source link

vendor.css wants fonts from /assets instead of /fonts #576

Open bsylvain opened 5 years ago

bsylvain commented 5 years ago

Ruby 2.3.4 Npm 6.2 Ember CLI 0.10.0 Rails 5.1.4 "ember-cli-rails-addon": "^0.8.0" Apache

EmberCli.configure do |c|
  c.app :marketadmin
end

How is the application deployed? WIth capistrano

During capistrano production deployments, clean-css recently started to be more strict about CSS. First problem is that I have no idea how clean-css updated, as there as been no change in dependencies.

After modification of a package dependency CSS, the assets compilation and deployment were able to finish, however now the fonts are incorrect in vendor.css

Instead of being ..\fonts\ the path is now fonts\

1) Why is clean css updated ? 2) Why is it working in local 3) How can I have a correct path in the production css ?

bsylvain commented 5 years ago

If minifying is skipped in ember-cli-builds the paths are correct :

minifyCSS: {
  enabled: false
}

Something has been updated in the asset compilation process.

seanpdoyle commented 5 years ago

@bsylvain I'm not too familiar with Clean CSS, is this the tool: https://github.com/jakubpawlowicz/clean-css?

If this is still an issue, could you try and produce a simple, minimal reproduction of this in a snippet or example repository so that we can troubleshoot it in more detail?