0.0.3 • Published 5 years ago

onehome-webtemplate v0.0.3

Weekly downloads
96
License
-
Repository
-
Last release
5 years ago

one-home-ui

基于bootstrap的UI库

Usage

安装 node > 6.0
  • 安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
  • 安装依赖
cnpm install
  • 全局安装gulp
cnpm install -g gulp
  • 启动
gulp 或 npm start

浏览器打开 localhost:3000 查看,自动刷新
  • 打包生产版本的css和js
gulp build 或 npm run build

Note

  1. Font Awesome使用方法

  2. 可在gulpfile.js中配置打包后html文件中资源的公共路径

        gulp.task('reCollector',()=>{
        gulp.src(['rev/**/*.json','src/*.html'])
        .pipe(reCollector({
          replaceReved: true,
          dirReplacements: {
            'css/': 'css/', //此处配置
            'js/': 'js/'  //此处配置
          }
        }))
        .pipe(gulp.dest('dist'))
        });
0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago