Code Monkey home page Code Monkey logo

wacom's Introduction

wacomchina

访问地址:http://www.wacomchina.cn 通过Gulp构建工具结合NodeJS快速开发前端静态页。

开发

package.json文件

(1)新建

npm init

(2)Gulp插件安装:

"browser-sync": "^2.18.13",
"gulp": "^3.9.1",
"gulp-htmlmin": "^3.0.0",
"gulp-imagemin": "^3.4.0",
"gulp-less": "^3.3.2",
"gulp-minify-css": "^1.2.4",
"gulp-uglify": "^3.0.0"

.gitignore文件

node_modules
.idea
*.log
*.zip
dist/

Gulpfile.js任务

  • 开发模式gulp default:less文件编译css,浏览器同步。
  • 生产模式gulp build:设置输入输出文件,压缩html、css、images、js并输出文件到dist构建目录下。

项目开发

开始啦!


项目运行

// 开发模式
npm run dev 或者 gulp (gulp default)
// 生产模式
npm run build 或者 gulp build

wacom's People

Contributors

fen666 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.