Compare commits

...

3 commits

Author SHA1 Message Date
aa2a84860e 0.14.0 2024-06-10 03:34:56 +00:00
55f2d5cc14 Template keys fix. 2024-06-10 03:34:51 +00:00
f3382488fe 0.13.0 2024-06-10 03:28:52 +00:00
3 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "@flashwave/assproc",
"version": "0.12.0",
"version": "0.14.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@flashwave/assproc",
"version": "0.12.0",
"version": "0.14.0",
"license": "BSD-3-Clause",
"dependencies": {
"@swc/core": "^1.5.25",

View file

@ -1,6 +1,6 @@
{
"name": "@flashwave/assproc",
"version": "0.12.0",
"version": "0.14.0",
"description": "Personal frontend asset processing tool",
"main": "./src/index.js",
"scripts": {

View file

@ -23,8 +23,8 @@ module.exports = function(env) {
process: async (task, vars) => {
let data = fs.readFileSync(pathJoin(env.source, task.source));
if(typeof task.vars === 'string' && task.vars in vars)
data = strtr(data, vars[task.vars]);
if(typeof task.template === 'string' && task.template in vars)
data = strtr(data, vars[task.template]);
if(!env.debug)
data = await htmlminify(data, MINIFY_OPTS);