LESS CSS @import for javascript -


do know if there's kind of tool less css javascript allows import example "plugin-1.js"; in .js file. i'm working sublime text 2 build less (which references dotless.exe), maybe if you've tried it'll awesome if can share us.

if you're in html javascript in web can organize imports libraries require.js or include script tag above 1 you're using in html.

<script src="plugin-1.js" type='text/javascript'> </script> 

otherwise, if you're using node.js done require() directive such

var othermoduletorequire = require("plugin-1.js"); 

after available in file.

it worth mentioning while similar @import in functionality behave differently doing importing in run time instead of bundling files 1 @import does.

if care bundling files (for example in production under load) can use minifiers , optimizers the closure compiler or the require.js optimizer if chose use require.js.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -