stc-js-combine
v1.0.4
Published
Use document.write to combine js for STC
Downloads
6
Readme
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$/},
});