Comments (4)
Your gulp tasks look fine to me. Is there any error output?
Edit: You can always specify a task dependency - so that when you run gulp uncss
then it will rebuild the sass files for you before removing the unused selectors. Such as:
gulp.task('uncss', ['sass'], function() {
gulp.src('public/assets/build/css/app.min.css')
.pipe(uncss({
html: glob.sync('public/**/*.html')
}))
.pipe(gulp.dest('public/assets/build/css/test'));
});
from gulp-uncss.
I'm getting this error
"Error parsing JSON from phantom: SyntaxError: Unexpected end of input
Data from phantom was:"
from gulp-uncss.
I'm not really sure what to suggest, other than if you can get a reduced test case together and notify @giakki via the UnCSS issue tracker. Before you do, just make sure your source files (HTML and output CSS) don't contain any errors/weird things that might be causing phantom to fail. I'm not entirely sure if its the sass that is the problem however, if all of that is compiling correctly.
from gulp-uncss.
@solenoo I think this is related to this issue (uncss/uncss#98) so I'm going to close this as a duplicate of that one.
from gulp-uncss.
Related Issues (20)
- It seems to not work with LESS HOT 1
- Unknown word, unable to parse undefined HOT 1
- No output HOT 1
- gulp-uncss breaks gulp-jspm HOT 2
- Incorrect output HOT 1
- Incomplete css HOT 1
- globbing patterns for ignore list HOT 1
- fontconfig error HOT 1
- Disable PhantomJS HOT 1
- Question: is it possible to use gulp-uncss with handlebars precompiled templates? HOT 1
- Works with URLs, not local HTML files on Windows (10) HOT 5
- "TypeError: Bad argument" in a dependency? HOT 7
- SetProcessDpiAwareness failed: "COM error 0x80070005 HOT 1
- Example task doesn't work - fn = function () { throw arg; }; HOT 1
- Nodeserver for uncss HOT 1
- Create separate css files per globed html input HOT 1
- Why are only html files supported? HOT 1
- Is it possible to report about deadcode only?
- SyntaxError: Unexpected token '{'
- ignore: is not working
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 gulp-uncss.