Skip to content
val loader module for webpack
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 Initial commit May 4, 2012
index.js bug Jan 30, 2013
package.json fix for webpack 0.9 Jan 30, 2013

val loader for webpack


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:




Something went wrong with that request. Please try again.