Comments (10)
The only thing I can see that might be causing a conflict is that grunt rewrites the node/print
module which is also used by require-css.
Perhaps try commenting out these lines in css-builder.js here (comment out lines 3 - 8) - https://github.com/guybedford/require-css/blob/master/css-builder.js#L3.
I will test it out myself soon anyway though, but that is just if you need it more urgently.
from require-css.
Thanks for replying so fast! Unfortunately it didn't work.
from require-css.
Sorry, I was wrong, it works. Thank you! Will you include a definitive fix in css-builder.js? Thanks ;)
from require-css.
So it was those lines? Ok I've added a fix that is more compatible. Please let me know if you notice any issues with this.
from require-css.
I haven't been able to test this, but I am assuming it has been fixed to release 0.0.1. If there is still an issue please let me know asap.
from require-css.
It's still there, it didn't fix it.
from require-css.
Any chance you can share a test project / repo for me to try this out?
from require-css.
I tried to create a test project, but it worked... then I found what was going on, I was minifying the JS files after the optimization, in a separate process, and that was causing the issue. The rare thing (at least for me, maybe you have a clue) is that commenting out the piece of code you told me it works, but with your final solution it doesn't...
from require-css.
So if I understand you correctly, the grunt process itself is running fine, it is simply that the app isn't running after minification? If so have you tried relaxing the uglification settings? Or is it the grunt process itself that is stalling?
from require-css.
I'm closing this for now. If you have any further issues please let me know.
from require-css.
Related Issues (20)
- explanation requested
- In IE8-9 onload does not fire in the second iframe HOT 1
- [Help!]There is a problem that load the css in iframe
- Is it possible to set media type when I load css via require?
- Require CSS in the path HOT 4
- Not working relative path's with baseUrl HOT 2
- How to skip css! references in r.js builds? HOT 1
- Removing CSS files (by reading the `removeCombined` property) HOT 3
- R.js build fails with external resources defined in the "paths" config property HOT 8
- req.toUrl is undefined HOT 2
- IE9: ieCurCallback null, Object expected HOT 1
- Error load timeout for css modules HOT 2
- In css-builder.js path.dirname(config.out) got an error HOT 2
- having trouble specifying path of css to load HOT 1
- R.js - Path must be a string HOT 4
- "Script-inlined CSS Benefits" - additional info
- how to work with commonjs module HOT 1
- When loading a cdn style sheet fails,How to load a local style sheet
- require-css load css file folder name conflict with plugin name
- Loading a css file that doesn't end with ".css"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from require-css.