alecaddd / gulp-es6 Goto Github PK
View Code? Open in Web Editor NEWGulpfile setup for Javascript ES6 compiling, plus SCSS, images, and fonts handling
Gulpfile setup for Javascript ES6 compiling, plus SCSS, images, and fonts handling
I have been testing your gulpfile.js
but if I do several changes, sooner or later it just stuck.
Hi Alessandro,
I've forked this and refactored things for more of a static site usage (https://github.com/peterankelein/gulp-es6) where I have a src
and dist
folder. For the most part it all works (task pipes work, files are copied properly to the dist folder, style and js paths are correct when opening the html in the dist
folder. However, I'm running into an issue where the CSS and JS aren't loading during the watch....I'm actually getting mime type errors for both in console so they won't load. I'm assuming there is some path issue I'm missing in the gulpfile or some extra step but I haven't been able to suss it out.
Note that I'm putting HTML into src and have changed the browserSync base to /src/
in order to load the page. I could get the CSS and JS to load prior by having the html in the root directory and leaving the base to ./
but it's not very clean. I know you've moved on to webpack but if you have a second, could you load up my repo and see if you can spot anything off the bat that I need to change?
Thx,
Pete
Hi, I was just using your template on larger libs, and I found even when the watcher is processing in series, the browserSync.reload event is firing before all the resources (js/scss) are done being processed.
Hi Alessandro!
I've watched your videos about gulp and they felt bit overwhelming. As I am trying to get the livereload to work for my own project based on html/css.
I noticed that to make this setup work I needed to create a empty dist/js/main.min.js. I guess its because of this line.
src(jsURL + 'main.min.js')
If I delete that line this whole setup breaks down. Whats the reason of it? Is there any problems If I set html file to src?
Hello... Can you please tell me how and where I will be adding my JS code ? I have been trying by doing copy paste in app.js and main.js but it is not working for me... Please help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.