baidu-template-loader
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -35,6 +35,10 @@ /** | ||
module.exports = function(source, map) { | ||
var me = this; | ||
me.cacheable(); | ||
source = precompile(source); | ||
this.callback(null, source, map); | ||
me.callback(null, source, map); | ||
}; | ||
@@ -5,3 +5,3 @@ { | ||
"license": "ISC", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "webpack百度模板预处理模块", | ||
@@ -8,0 +8,0 @@ "main": "index.js", |
@@ -16,3 +16,3 @@ # webpack 百度模板预编译模块 | ||
module: { | ||
loaders: [ | ||
preloaders: [ | ||
{ test: /\.tmpl$/, loader: "baidu-template" } | ||
@@ -19,0 +19,0 @@ ] |
Sorry, the diff of this file is not supported yet
31
1743