Comments (7)
Hi Guys,
I have the same problem.
This is happening on other BrowserSync/Gulp setup, even the one recommended on BrowserSync website.
I also tried to remove autoprefixer & other pipes, but still getting injected all the main scss files.
from blendid.
After further testing i've came to the conclusion that is the access to the config file within the tasks that is slowing everything down.
Removing the references to "source", "build" and plugin configuration from the sass task everything goes back to normal values, including the autoprefixer and sourcemaps tasks.
Update: Actually scratch that, I had an error on the sass file and that was the reason for the fast output. It seems that splitting the gulp file in multiple files always slows things down.
from blendid.
Are you guys returning the streams in your tasks? 5.05 ms seems impossibly fast - like that the task is reporting finished as soon as it runs, instead of as soon as the sass is finished compiling.
from blendid.
Also, I pushed up some changes to the BrowserSync implementation over the weekend. Pull the latest and let me know if your issues persist with the new setup.
from blendid.
Hey Dan,
Thanks for the updates, i'll test them asap.
Regarding the compilation times, I can assure you the difference is quite noticeable. With my "common" gulp file the compilation is pretty much instant.
from blendid.
Hi Dan, im closing this one since it seems there's nothing to do here.
One quick note though. I've noticed on my setup that returning the task does add about 1s to each compilation, that is:
gulp.task('sass-build', function () {
gulp.src( config.SASS.src )
vs this:
gulp.task('sass-build', function () {
return gulp.src( config.SASS.src )
from blendid.
@lmartins Cool, thanks. So when you don't return the task, gulp will immediately report that the task has finished, regardless of whether or not the file has finished compiling. You must return a stream, or fire a callback if you want proper task reporting. Otherwise gulp has no way of knowing when it's complete, and immediately moves on to the next thing.
from blendid.
Related Issues (20)
- watch task will not compile more than 48 html files HOT 5
- Removing "comments" from public/html files HOT 1
- xlink:href being deprecated in SVG
- Additional Tasks information HOT 4
- Build issue: UglifyJs - Unexpected token: name (context)
- Build issue: UglifyJs - Unexpected token: name (context) HOT 5
- Fonts aren't copied over on build HOT 1
- additionalTasks access rev-manifest HOT 4
- Not bundle jquery in production HOT 1
- Current project status HOT 4
- 4.5.0 release not available through npm/yarn HOT 1
- Failed to mount component: template or render function not defined HOT 1
- upgrade to gulp 4
- empty prebuild and postbuild configs must be `null`/`false`, not `[]`. change this behavior?
- html watch task does not notice changes to files added after Blendid was started
- wrong generation of path for js-files in rev-manifest on windows HOT 1
- Configuration for swiper to work
- The engine "node" is incompatible with this module HOT 3
- 4.5.3 release not available through npm HOT 1
- ERROR in bundle.js from UglifyJs Unexpected token: name (ChangeDesc) [bundle.js:2900,6]
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 blendid.