在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):discardedbacon/bootstrap-sass-gulp-browsersync开源软件地址(OpenSource Url):https://github.com/discardedbacon/bootstrap-sass-gulp-browsersync开源编程语言(OpenSource Language):JavaScript 63.8%开源软件介绍(OpenSource Introduction):Bootstrap, Sass, Gulp & BrowserSyncThis package of scripts gives you a starting point for building a website with Bootstrap, Sass and Gulp. BrowserSync built into the package allows you to confirm every code changes in a browser window on the fly. It is hoped to make your workflow faster, and more functionalities will be added until it can be used as a true alternative to Google Web Starter Kit. Version 0.2.0 includes gulp-gzip to generate gzip files for css and js. DependenciesHow to InstallDownload the package, and place all the files on the root level of your project's directory. Then do the following:
At the end of initialization process, BrowserSync will launch a local web server, open a new browser window/tab and load a barebone html template (index.html). How It Works
DirectoriesDefault directory names are specified as follows in gulpfile.js By simply changing the bsk object's properties, you'll be able to use different directory names.
Methods to include Bootstrap's Javascript componentsapp/(jsDir)/bootstrap.js contains all of Bootstrap's JavaScript, concatenated in the correct order. If you would like to selectively load the components, such as 'alerts', 'buttons', and 'tooltip', you can require bootstrap-sprockets. To use the bootstrap-sprockets: Open app/(jsDir)/bootstrap-sprockets.js and apped .js to file names you would like to use. For example,
should be
The conpenent's codes will be inserted into app/(minifiedJsDir)/bootstrap-sprockets.min.js. Make sure to include the minified Javascript file in your templates. Refer to the gulp-include page to learn more on how the Javascript files are included. CreditsSome parts of Gulpfile.js are based on gaspanik/bootstrap3-sass-gulp by @cypher. ##License Code and documentation copyright of Bootstrap 3 are owned by Twitter, Inc, with code released under the MIT license and docs released under Creative Commons. Each Node.js module may have different terms of use. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论