ktmud / autostatic Goto Github PK
View Code? Open in Web Editor NEWAutomatically manage static file versions for Express/ NodeJS
Automatically manage static file versions for Express/ NodeJS
/node_modules/autostatic/lib/uglify.js:8
var ast = jsp.parse(str);
^ (under the p in parse i.e. jsp is undefined or null);
TypeError: Cannot call method 'parse' of undefined
at Object.module.exports.js (/node_modules/autostatic/lib/uglify.js:8:19)
at Manager.minify (/node_modules/autostatic/lib/manager.js:99:28)
at fs.readFile (fs.js:176:14)
at Object.oncomplete (fs.js:297:15)
I wanted to send you an email or message from your website however that info was not available.
If i can, for future a future update, I would like to recommend a combine feature where all the min static files created can be combined into one file.
Example
script src="{{ static('/js/one.js') }}"></script
script src="{{ static('/js/two.js') }}"></script
script src="{{ static('/js/three.js') }}"></script
script src="{{ static('/js/four.js') }}"></script
script src="{{ static('/js/five.js') }}"></script
becomes
script src="{{ static('/js/one.min.js?1234567-8900') }}"></script
After downloading the upgrade
module.js:340
throw err;
^
Error: Cannot find module 'clean-css'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (/home/username/webapps/appname/node_modules/autostatic/lib/uglify.js:1:78)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
Same error occurs, I had to downgrade to the old one for it to work.
I cannot add a semicolon to every single file that I use.
Maybe I am upgrading wrong, shouldn't copy and pasting the files work ?
module.js:340
throw err;
^
Error: Cannot find module 'clean-css'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (/home/username/webapps/appname/node_modules/autostatic/lib/uglify.js:1:78)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
I downloaded the ZIP and updated the files. nmp install still gives the old version it seems as helper() is not availble
I have a case of two files
// in file 1
var vname = {controller:''};
$(document).ready(function() {
'use strict';
window.scrollTo(0, 0);
});
// in file 2
place.controller = {...}
When combined gives an error. For some reason the semicolon is removed and the file combines like this
...on(){"use strict";window.scrollTo(0,0)})person.controller={constructor:function(...
^ (Semi-colon removed)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.