compile-code-loader
v1.0.0
Published
Compiles javascript with webpack and loads result as string
Downloads
14,134
Readme
compile-code-loader
Compiles javascript with webpack and loads result as string
#Usage:
To compile and get result as string:
var compiledSourceString = require('compile-code?asString=true!./fileToLoad');
Also it is possible to get result as javascript and apply transformation, uglifyjs for example:
var compiledSourceString = require('raw!uglify!compile-code!./fileToLoad');
Contributing
npm install
cd examples && npm install
npm run build-examples