Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
val loader module for webpack
JavaScript
branch: master

bug

latest commit ee3a001668
@sokra sokra authored
Failed to load latest commit information.
separable use query param
.gitignore use query param
README.md Initial commit
index.js bug
package.json fix for webpack 0.9

README.md

val loader for webpack

Usage

var a = require("val!./file.js");
// => excute file.js while compiling and 
//    take the result as javascript code for including

Don't forget to polyfill require if you want to use it in node. See webpack documentation.

The excution of file.js has polyfill already applied.

This loader is also useful if you want to provide data for another loader:

require("css!val!./generateCss.js");

License

MIT (http://www.opensource.org/licenses/mit-license.php)

Something went wrong with that request. Please try again.