1.0.4 • Published 8 years ago

stc-js-combine v1.0.4

Weekly downloads
23
License
-
Repository
github
Last release
8 years ago

stc-js-combine

A STC module that combines js files by resolving import directives.

Install

npm install stc-js-combine

How to use

(function() {
 var srcPath = '/resource/js/';
 document.write('<script src="' + srcPath + 'b.js"><\/script>');
 document.write('<script src="' + srcPath + 'c.js"><\/script>');
 document.write('<script src="' + srcPath + 'd.js"><\/script>');
 }());
var jsCombine = require('stc-js-combine');

stc.workflow({
  jsCombine: {plugin: jsCombine, include: /\.js$/},
});
1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago