-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Moved web assets to web/ and implemented a pure PHP compression solution for CSS and JS files #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ccda00c
Moved web assets to web/ and implemented a pure PHP compression solut…
javiereguiluz 2f003cf
Simplified assets paths
javiereguiluz a4093a9
Apply the JS minification only in non-debug mode
javiereguiluz 42903d4
Moved assets sources back to app/Resources/assets/
javiereguiluz 11ea2bf
Last changes for this feature
javiereguiluz 62417ca
Added a note about contributing to this project
javiereguiluz a88b360
Added a new CONTRIBUTING file with some instructions
javiereguiluz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Contributing | ||
============ | ||
|
||
The Symfony Demo application is an open source project. Contributions made by | ||
the community are welcome. Send us your ideas, code reviews, pull requests and | ||
feature requests to help us improve this project. All contributions must follow | ||
the [usual Symfony contribution requirements](http://symfony.com/doc/current/contributing/index.html). | ||
|
||
Web Assets Management | ||
--------------------- | ||
|
||
This project manages its web assets in a special way to allow them to work | ||
without configuring any option, installing any tool or executing any command. | ||
If your contribution changes CSS styles or JavaScript code in any way, make | ||
sure to regenerate the `web/css/app.css` and `web/js/app.js` files. To do so, | ||
uncomment the Assetic blocks in the `app/Resources/views/base.html.twig` and | ||
execute the following command: | ||
|
||
```bash | ||
$ php app/console assetic:dump --no-debug | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
565 changes: 0 additions & 565 deletions
565
app/Resources/assets/fonts/font-awesome/fontawesome-webfont.svg
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really ? for lessphp, using
compressed
works fine.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I use the following config:
I get the following error:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@javiereguiluz can you give the stack trace ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the full log information:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I want is the stack trace of the exception, not the logs (run your assetic dump command in verbose mode to get the stacktrace)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry! Here it is:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed. the ScssPhp library expects a class name. It is always nice to see consistency between libraries created by the same dev 😄