Comments (9)
I don't think there are any (gulp) modules that allow to only remove spaces, not all of the whitespace. Therefor "aligning to the left" is probably also not possible, as spaces or tabs are also considered to be whitespace. In my opinion, you either minify everything, or you don't minify at all.
But since you are using PHP, can you tell me if you are working with a framework? Or just good ol' inline PHP?
from headstart.
And to remove tabs and comments it's possible?
I'm using Laravel, and in some cases inline PHP!
from headstart.
Comments are doable, but this would mean expanding the config.json
or adding a new config file somewhere and I'm not willing to force everyone that uses Headstart into that. Tabs can't be specified through the module I'm using for minifying at the moment. It's all just "whitespace"..
But, it so happens we are using Laravel where I work, and Headstart supports a rudimentary form of integration so the two can be used simultaneously. It requires some changes, but we have built quite a few projects successfully by doing so.
In short, Headstart moves the files over to any specified folder and hands the templating over to Laravel. This also means you can put in your Laravel tags and plain PHP inside of the unminified templates files, only to minify them afterwards, when you don't need to touch them anymore.
from headstart.
That's ok.
Next project i'll try to work with this for Laravel.
Mean while i'm using htmlcompressor.com that do what i want.
from headstart.
Sorry that I couldn't help you right away though. But let me know if you have any questions on the Laravel integration. I don't know if anyone else ever tried using the guide I put on the website, so it might need some improvements.
I will put a version milestone on this issue so I can revisit it for a future release.
from headstart.
Kinda fixed it, so closing as this is all I can do to give you some options. Will be included in v1.3.
from headstart.
Hi, just one example of what i'm trying to explain!
http://htmlcompressor.com/compressor/
I just saw what you did with some options for the v1.3, but this example(htmlcompressor) don't merge lines in html, and the script stays more readable!
Is that a way of doing this? did you try it?
from headstart.
Setting collapseWhitespace: true
in the upcoming version, would equal to checking "Single line html output" in the Htmlcompressor. So if you would set that to false
you would maintain readable code.
Again, sorry for the long waiting. I have next to no time to work on Headstart
from headstart.
That's good news!
I think that headstart it's almost fine, some minor issues and updates.
For me it's a good way of doing my job. thanks again
from headstart.
Related Issues (20)
- How about include a new stats performance on serve mode HOT 1
- SVG optimization HOT 12
- Browser live-reload not working as intended HOT 13
- Link to Compass lib files is broken HOT 2
- How to override gulpfile.js file? HOT 3
- Rename "Assets" folder HOT 10
- Make `grid()` mixin WET again
- Fix CLI to show `gulp.watch()` output again
- Upgrade the `.reporting` classes HOT 1
- liftoff 2x / v8flags 2x released HOT 1
- Can't install, help! HOT 15
- Support Node v0.12.x
- Not working on IE9 HOT 6
- Front-end package manager
- Write tests
- Serving through IP/wifi has odd scrolling behaviors HOT 6
- Javascript Obfuscator on export HOT 3
- Gem version control HOT 3
- "headstart init" stops at "Cleaning up..." HOT 3
- Install hangs up HOT 9
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 headstart.