This repository has been archived by the owner on Jul 28, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CONTRIBUTING_WEBPACK.md Co-authored-by: Javier Spagnoletti <[email protected]> Update CONTRIBUTING_WEBPACK.md Co-authored-by: Javier Spagnoletti <[email protected]> Update CONTRIBUTING_WEBPACK.md Co-authored-by: Javier Spagnoletti <[email protected]> Update CONTRIBUTING_WEBPACK.md Co-authored-by: Javier Spagnoletti <[email protected]>
- Loading branch information
Showing
68 changed files
with
24,440 additions
and
1,233 deletions.
There are no files selected for viewing
This file contains 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 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,28 @@ | ||
Contributing webpack encore | ||
=========================== | ||
|
||
### webpack configuration | ||
|
||
You can find configuration for each build under `builds_configs/` directory. This structure allows to use different | ||
configurations for each layout. | ||
|
||
```sh | ||
cd ./builds_configs/sonata_admin_adminlte2 | ||
yarn install # to install node_modules | ||
yarn encore dev # to generate files under `public/build/sonata_admin/` | ||
``` | ||
|
||
### templates and css frameworks | ||
|
||
Symfony allows to override templates ([see more][link_symfony_templates]). Use it for testing your changes. | ||
Before creating a new PR, move this file under the chosen framework directory (for example, `templates/bootstrap3/`). You can also add other CSS frameworks | ||
and templates for them. | ||
|
||
### Links: | ||
|
||
- [webpack encore dev-kit issue][link_issue] | ||
- [symfony webpack guide][link_symfony_webpack] | ||
|
||
[link_issue]: https://github.com/sonata-project/dev-kit/issues/779 "webpack encore dev-kit issue" | ||
[link_symfony_webpack]: https://symfony.com/doc/current/frontend.html#webpack-encore "symfony webpack encore" | ||
[link_symfony_templates]: https://symfony.com/doc/current/bundles/override.html "symfony override templates" |
This file contains 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,3 @@ | ||
body { | ||
background-color: lightgray; | ||
} |
This file contains 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,14 @@ | ||
/* | ||
* Welcome to your app's main JavaScript file! | ||
* | ||
* We recommend including the built version of this JavaScript file | ||
* (and its CSS file) in your base layout (base.html.twig). | ||
*/ | ||
|
||
// any CSS you import will output into a single css file (app.css in this case) | ||
import '../css/app.css'; | ||
|
||
// Need jQuery? Install it with "yarn add jquery", then uncomment to import it. | ||
// import $ from 'jquery'; | ||
|
||
console.log('Hello Webpack Encore! Edit me in assets/js/app.js'); |
Oops, something went wrong.