npm.io
1.0.0 • Published 6 years ago

compile-code-loader

Licence
MIT
Version
1.0.0
Deps
1
Size
2 kB
Vulns
0
Weekly
0

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

  1. npm install
  2. cd examples && npm install
  3. npm run build-examples