stc-js-combine

1.0.4 • Public • Published

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$/},
});

Readme

Keywords

none

Package Sidebar

Install

npm i stc-js-combine

Weekly Downloads

5

Version

1.0.4

License

none

Last publish

Collaborators

  • welefen