Harp + browser-sync + Bootstrap
Harp - the static web server with built-in preprocessing
$ sudo npm install -g harp
$ npm install
Start http://localhost:9000
$ harp server
and start proxying: http://localhost:9000 and http://localhost:3000
$ gulp server
When you write the code to jade files , there is a need to write root path.
img(src="/images/demo.png", alt="demo")
control + c
Compile source in /public/www
$ harp compile
Compile source non-minify-html in /dist
If you don't need to convert relative path to the dist directory, you change config.relativePath to false in gulpfile.js.
$ gulp dist
Compile both source at the same time
$ harp compile;gulp dist
Install gulp-autoprefixer Use browser-sync with gulp
Use gulp-cssnano instead of gulp-minify-css Install gulp-sourcemaps
Install JS and css libraries from npm
It is possible to convert relative path, even if there are lower directories.
- gulp-csscomb
- gulp-minify-css
- gulp-uglify
- .editorconfig
- .jsbeautifyrc
- .jshintrc
- .tern-project
- gulp-html-prettify