Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pack Client Assets doesn't import css files #312

Closed
hackable opened this issue Oct 15, 2012 · 6 comments
Closed

Pack Client Assets doesn't import css files #312

hackable opened this issue Oct 15, 2012 · 6 comments
Assignees
Labels
Milestone

Comments

@hackable
Copy link

I've noticed pack client assets doesn't import css files for example if i had

@import 'libs/style.css'
@import 'libs/custom.css'
@import 'libs/font-awesome/font-awesome.css'

it doesn't import t

@owenb
Copy link

owenb commented Oct 18, 2012

Hi there

Does this work correctly when in development? If so this is clearly a bug and I will try to fix.

@hackable
Copy link
Author

packAssets doesn't pack css import dependencies into one file when in development the css import files are usually served from /_serveDev/css/libs/style.css but in production it try to fetch it from /assets/libs/style.css and it would as normally return a 404 error unless one copies the file into /assets/ directory so i believe this needs to be fixed.

@owenb
Copy link

owenb commented Oct 21, 2012

Agreed. We should have 100% the same behaviour between dev and prod modes.

If you fancy looking into this and submitting a pull request, that would be fantastic. Otherwise I'll add it to the todo list and look at it after RealtimeConf

@paulbjensen
Copy link
Contributor

Adding this into 0.3.12

@paulbjensen paulbjensen self-assigned this Feb 1, 2015
@paulbjensen paulbjensen added this to the 0.3.12 milestone Feb 1, 2015
@thepian
Copy link
Member

thepian commented Feb 22, 2015

I think it is important to ensure that you can still explicitly have @import statements in the compiled CSS if that is what you really want to do.

LESS and SASS formatters make the distinction, so it's important that this is a formatter responsibility not one in the bundler.

The simplest solution is to have a CSS Import Combining formatter.

@thepian
Copy link
Member

thepian commented Mar 11, 2015

The relative URL of assets now work the same in development and production in version 0.4

If you want to resolve @import statements in CSS you can make a custom bundler that does it for you.

So to me this is fixed.

@thepian thepian closed this as completed Mar 11, 2015
@thepian thepian modified the milestones: 0.4, 0.3.12 Mar 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants