Giter Site home page Giter Site logo

autostatic's People

Contributors

bitdeli-chef avatar ktmud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

autostatic's Issues

Error after updating

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

Combine Error

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)

Recommendation for 2013

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

Issue with Uglify

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 ?

Potential Bug

/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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.