GithubHelp home page GithubHelp logo

Comments (9)

nonameplum avatar nonameplum commented on August 25, 2024

I reviewed your code deeper and I found answer to my question:
[index.js]

framework.onCompileCSS = function (filename, content) {
    return content;
};

framework.onCompileJS = function (filename, content) {
    return content;
}

However I think you could add configuration values to have quick access to disable minifier.

from framework.

petersirka avatar petersirka commented on August 25, 2024

Hi @nonameplum,
Disabling compression can causes a serious problem.
What happen if You use „LESS“ OR „SASS“ or „AUTO-VENTOR-PREFIXES“?
I will add a new config item to disable the compression of JavaScript.

Thanks

from framework.

nonameplum avatar nonameplum commented on August 25, 2024

Hi @petersirka
Could You explain what You mean in „LESS“ OR „SASS“ or „AUTO-VENTOR-PREFIXES“?
I am looking at Your framework for about 1 day and don't know well Your framework concepts.

I wish You share some more detailed documentation :) I don't see for example how to avoid adding "name" value declared in config-debug to title of site which is not home site. Generaly more explanation about @meta etc. syntax welcome :)

Compressed CSS is not the big problem, but compressed JavaScript is, becouse of hard of debugging client side JavaScript in web browser.

Thanks

from framework.

petersirka avatar petersirka commented on August 25, 2024

Yes, documentation is bad. The problem is in two things:

  1. my english is bad
  2. I'm alone on all

I'll add on/off option of JavaScript compression and I'll update the documentation of partial.js.
Thank you for your feedback.

from framework.

eMarek avatar eMarek commented on August 25, 2024

@petersirka, you should start working full time on this framework because is really good piece of software. Basically I am working with PHP on Codeigniter framework and I am just very excited about node.js and partial.js and all this JS stuff. What I wanted to say is that I found some parallels in Codeigniter and partial.js. Both frameworks are structured just right enough to guide newcomers and on the other hand give freedom to lean programmers. I think that there is potential on partial.js. I recommend it to all my friends. :)
I learned a lot about the partial.js through the examples and yes, the documentation is a little bit poor. Stop coding, start writing better documentation. Your english is not bad, community will correct grammar errors.

from framework.

capslow avatar capslow commented on August 25, 2024

I am having a problem with the javascript compressor. The message I get is the following one: JavaScript compressor ---> ReferenceError: c is not defined ReferenceError: c is not defined.
I don't know how to solve this, I tries everything, an even if I put the javascript code in a .min.js file I get this message. Is there any possibility to disable the javascript compressor now?

from framework.

petersirka avatar petersirka commented on August 25, 2024

Hi @capslow,
can you send me your js file? What version of total.js do you have?

Disable minification:
http://docs.totaljs.com/v1.7.x/en.html#api~FrameworkConfiguration~allow-compile-js

from framework.

capslow avatar capslow commented on August 25, 2024

Hi @petersirka ,
Thank you for answering so quick. Finally I was able to solve the problem, I think that I was making a mistake in the javascript or something like that.
Sorry for the inconveniences and thanks for developing such a great tool.

from framework.

petersirka avatar petersirka commented on August 25, 2024

Thanks, no problem 👍

from framework.

Related Issues (20)

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.