compile-code-loader

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1,330
    • latest

Version History

Package Sidebar

Install

npm i compile-code-loader

Weekly Downloads

1,357

Version

1.0.0

License

MIT

Unpacked Size

2.5 kB

Total Files

3

Last publish

Collaborators

  • huston007