@plotdb/srcbuild 0.0.53 → 0.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/lib.pug +2 -2
- package/dist/main.js +1 -0
- package/dist/view/pug.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -246,6 +246,7 @@ Use the second option object to specify additional parameters, including:
|
|
|
246
246
|
- require `bundler` option in pugbuild constructor.
|
|
247
247
|
- doesn't work with external urls.
|
|
248
248
|
- there are still issues about rebuilding and build from view.
|
|
249
|
+
- `min`: default true. When true, use minimized packed file with pack option.
|
|
249
250
|
|
|
250
251
|
#### Auto Packing Issue (TODO)
|
|
251
252
|
|
package/dist/lib.pug
CHANGED
|
@@ -36,7 +36,7 @@ mixin script(os,cfg)
|
|
|
36
36
|
if cfg && cfg.pack
|
|
37
37
|
-
|
|
38
38
|
var name = md5(str);
|
|
39
|
-
var filename = "/js/pack/" + name + ".js";
|
|
39
|
+
var filename = "/js/pack/" + name + "." + (typeof(cfg.min) == "undefined" || cfg.min ? "min" : "") + ".js";
|
|
40
40
|
hashfile({type: "js", name: name, files: urls});
|
|
41
41
|
script(type="text/javascript",src=filename + libLoader._v)
|
|
42
42
|
|
|
@@ -63,6 +63,6 @@ mixin css(os,cfg)
|
|
|
63
63
|
if cfg && cfg.pack
|
|
64
64
|
-
|
|
65
65
|
var name = md5(str);
|
|
66
|
-
var filename = "/css/pack/" + name + ".css";
|
|
66
|
+
var filename = "/css/pack/" + name + "." + (typeof(cfg.min) == "undefined" || cfg.min ? "min" : "") + ".css";
|
|
67
67
|
hashfile({type: "css", name: name, files: urls});
|
|
68
68
|
link(rel="stylesheet",type="text/css",href=filename + libLoader._v)
|
package/dist/main.js
CHANGED
|
@@ -24,6 +24,7 @@ module.exports = {
|
|
|
24
24
|
bundler = new bundle(import$((ref$ = {
|
|
25
25
|
base: b
|
|
26
26
|
}, ref$.logger = opt.logger, ref$.i18n = opt.i18n, ref$.ignored = opt.ignored, ref$), opt.bundle || {}));
|
|
27
|
+
adapters.push(bundler.getAdapter());
|
|
27
28
|
adapters = adapters.concat([
|
|
28
29
|
new lsc(import$((ref$ = {
|
|
29
30
|
base: b
|
package/dist/view/pug.js
CHANGED
|
@@ -96,9 +96,9 @@ pugViewEngine = function(options){
|
|
|
96
96
|
}
|
|
97
97
|
return cb(null, ret);
|
|
98
98
|
})['catch'](function(err){
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
err.id = 1033;
|
|
100
|
+
err.name = 'lderror';
|
|
101
|
+
err.log = true;
|
|
102
102
|
return cb(err, null);
|
|
103
103
|
});
|
|
104
104
|
}
|