Skip to content
val loader module for webpack
JavaScript
Find file
Latest commit ee3a001 Jan 30, 2013 @sokra sokra bug
Failed to load latest commit information.
separable use query param Nov 2, 2012
.gitignore use query param Nov 2, 2012
README.md Initial commit May 4, 2012
index.js bug Jan 30, 2013
package.json fix for webpack 0.9 Jan 30, 2013

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.