Comments (9)
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.
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.
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.
Yes, documentation is bad. The problem is in two things:
- my english is bad
- 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.
@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.
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.
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.
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.
Thanks, no problem 👍
from framework.
Related Issues (20)
- How to ignore U.request() causing self signed certificate in certificate chain error. HOT 3
- [feature] : How to create custom node (component) using python script HOT 4
- Serve Angular components views using TotalJS HOT 3
- How can I validate with schema.define the workflow options? HOT 8
- DBMS PostgreSQL doesn't catch an error HOT 1
- How to store information from a test to reuse it HOT 4
- Please help to fix Bug in REST COMPONENT HOT 6
- How to validate the response schema from unit testing method? HOT 5
- What is substitution for CONFIG method in total.js V4? HOT 4
- AUTH global function is recieving undefined in $.params HOT 4
- Trying to get in touch regarding a security issue HOT 2
- F.snapshotstats is not a function at FrameworkCacheProto.recycle HOT 1
- Total v4 is not sending operation object when using EXEC HOT 5
- How to hide X-Powered-By for security reason? HOT 1
- Timeout Set Up HOT 4
- How to onload in totaljs 4 HOT 2
- How to set CORS for public files? HOT 3
- Exporting the JSON HOT 6
- How to load config file and read config as independent library? HOT 4
- How to custom response 408 timeout on spesific route? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework.