A gulpfile for building front-end assets.
npm install
gulp build
A new assets folder is created in your current working directory. Don't put your own assets in the assetsfolder!
Check if everything went fine by opening index.html in your browser.
If
you see some styles , it's ok.
Else
, check your stylsheets ands scripts links your your index.html
All you assets need to be in the sources folder :
- ADD your Javascript files in the
js
folder - ADD your Scss files in the
scss
folder - ADD your Fonts files in the
fonts
folder - ADD your Images files in the
images
folder
gulp watch
Your assets in the sources
folder is automatically add or updated in the assets folder.
All modifications (saved changes) are watched by the watch command and your changes will be reflected in the assets
folder.
In the project directory, you can run:
No images conversions in default/build command
gulp
gulp build
gulp css
Javascript : Transpile and uglify your javascript files into ES5. All files with the extensions .js are transpiled.
gulp js
gulp images
gulp fonts
Save your changes to auto reload
gulp watch
Sonia Brunel
If you like this project, Give it a ⭐ and Share it with friends!
Made with ❤️