Skip to content

An experimental requirejs like module loader to support features like runtime file merge

Notifications You must be signed in to change notification settings

mikezhuyuan/simple_require

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is an experimental project to support runtime file merge for asynchronous Module Definition (AMD) such as RequireJS. It extends syntax to load a group of dependencies, for example:

  require([['a.js', 'b.js']], function(){
    ...
  });

So here 'a.js' and 'b.js' will be sent by one request like 'merge?a.js&b.js'

How to Run

  • Install Node
  • Run 'node server.js'
  • Visit 'localhost:8080/index.html'
  • Watch results in console

Tips

  • You can setup configuration in the simple server 'server.js', which implemented file merge protocal.
  • Try different combination in 'index.html'

About

An experimental requirejs like module loader to support features like runtime file merge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published