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

Css files order on build #6

Closed
samg0rd opened this issue Feb 20, 2019 · 1 comment
Closed

Css files order on build #6

samg0rd opened this issue Feb 20, 2019 · 1 comment

Comments

@samg0rd
Copy link

samg0rd commented Feb 20, 2019

Hi. we are encountering an issue , when we build the project using npm run build we face a problem with css ordering at the end . in the project we have a style.css file which has to override all the styles at the end . it works fine in the development mode. but when we build the project using npm run build command , what we see is that some node_module dependency styles are being placed after our style.css styles. how can we prevent that? how can we make sure that our style.css style codes ALWAYS comes last in the process of building our project?

any help will be much appreciated . i know it might not be a boilerplate Direct issue but still , we are facing this problem . thanks in advance .

@samg0rd
Copy link
Author

samg0rd commented Feb 20, 2019

Ok , a friend of mine solved this problem for us , for anyone who is facing a similar problem, you need to require your styles in app.init.js file . and if u have anything addresses with url() in your css files you need to put a ~ before your address . like this :
background: url('~/src/assets/imgs/homeBackground.png');

@zmts zmts closed this as completed Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants