Giter Club home page Giter Club logo

require-test's Introduction

require-test

require demo

requirejs 合并及使用的demo

两种合并压缩方式

- 用官方的r.js合并

- gulp的 amd-optimize 合并

第二种方式感觉会更方便点,一次配置,只要执行任务即可

使用方法

需要node环境,及安装npm,下载后,

npm install 

安装完毕 执行

gulp 

使用问题

正常在head中引用rqeuire,加载功能模块一切正常 但是当与在页面中使用 require 加载某些功能模块混合使用后会出现执行2次的问题。

具体查看本demo中 login 页面,在控制台中查看,发现执行了2次b,还待解决。

require-test's People

Contributors

zyj1022 avatar

Watchers

 avatar James Cloos 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.