builder_gulp-webpack-bs4
Another project with Gulp, Webpack and Bootstrap 4 grid.
System requirements
Clone repository an init project
git clone https://github.com/wowxoxo/builder_gulp-webpack-bs4 project_folder
cd project_folder
rm -rf .git
git init
Install dependencies
Install gulp globally
sudp npm install gulp
Install npm packages:
cd project_folder
npm install
Commands
Start the project.
npm start
Build the project.
npm run build
Create custom bootstrap
Requirements
Steps
-
Extract archive from /app/src/libs/bootstrap-4.0.0.zip
-
Install dependencies
cd bootstrap-4.0.0 npm i
-
Install Ruby (with Ruby installer for Windows Users)
-
Install Bundler (from 'Start Command Prompt with Ruby' Console!)
gem install bundler
OR command behind proxy:
gem install --http-proxy http://UserLastName.UserFirstName:UserPass@10.0.4.245:3128 bundler
-
Edit Gemfile (only if you're behind proxy)
Open Gemfile, change "source 'https://rubygems.org'" to "source 'http://rubygems.org'"
-
Install Ruby dependencies
-
Open Ruby console
-
cd to folder bootstrap-4.0.0
-
run:
# cd /d D:\ bundle install
-
-
Edit file variables.scss in folder app/libs
-
Copy and replace file variables.scss to app/src/libs/bootstrap-4.0.0/scss
-
Build
Run command in Ruby console (you can do it in git bash too, but ruby console prefer):
cd app/src/libs/bootstrap-4.0.0 npm run dist
-
Update grid for project
Run command in Git Bash from root folder of project
gulp bsRuby
-
Done!