-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Asset mapper with Webpack temp
- Loading branch information
1 parent
0a10307
commit 063da29
Showing
13 changed files
with
243 additions
and
134 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/* | ||
* Welcome to your app's main JavaScript file! | ||
* | ||
* This file will be included onto the page via the importmap() Twig function, | ||
* which should already be in your base.html.twig. | ||
* We recommend including the built version of this JavaScript file | ||
* (and its CSS file) in your base layout (base.html.twig). | ||
*/ | ||
import './styles/app.css' | ||
|
||
console.log('This log comes from assets/app.js - welcome to AssetMapper! 🎉') | ||
// any CSS you import will output into a single css file (app.css in this case) | ||
import './styles/app.css'; |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
body { | ||
background-color: skyblue; | ||
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,45 @@ | ||
webpack_encore: | ||
# The path where Encore is building the assets - i.e. Encore.setOutputPath() | ||
output_path: '%kernel.project_dir%/public/build' | ||
# If multiple builds are defined (as shown below), you can disable the default build: | ||
# output_path: false | ||
|
||
# Set attributes that will be rendered on all script and link tags | ||
script_attributes: | ||
defer: true | ||
# Uncomment (also under link_attributes) if using Turbo Drive | ||
# https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change | ||
# 'data-turbo-track': reload | ||
# link_attributes: | ||
# Uncomment if using Turbo Drive | ||
# 'data-turbo-track': reload | ||
|
||
# If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials') | ||
# crossorigin: 'anonymous' | ||
|
||
# Preload all rendered script and link tags automatically via the HTTP/2 Link header | ||
# preload: true | ||
|
||
# Throw an exception if the entrypoints.json file is missing or an entry is missing from the data | ||
# strict_mode: false | ||
|
||
# If you have multiple builds: | ||
# builds: | ||
# frontend: '%kernel.project_dir%/public/frontend/build' | ||
|
||
# pass the build name as the 3rd argument to the Twig functions | ||
# {{ encore_entry_script_tags('entry1', null, 'frontend') }} | ||
|
||
framework: | ||
assets: | ||
json_manifest_path: '%kernel.project_dir%/public/build/manifest.json' | ||
|
||
#when@prod: | ||
# webpack_encore: | ||
# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes) | ||
# # Available in version 1.2 | ||
# cache: true | ||
|
||
#when@test: | ||
# webpack_encore: | ||
# strict_mode: false |
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
{ | ||
"name": "@codedmonkey/conductor-assets", | ||
"devDependencies": { | ||
"@babel/core": "^7.17.0", | ||
"@babel/preset-env": "^7.16.0", | ||
"@symfony/webpack-encore": "^4.0.0", | ||
"core-js": "^3.23.0", | ||
"regenerator-runtime": "^0.13.9", | ||
"webpack": "^5.74.0", | ||
"webpack-cli": "^4.10.0", | ||
"webpack-notifier": "^1.15.0" | ||
}, | ||
"license": "UNLICENSED", | ||
"private": true, | ||
"scripts": { | ||
"dev-server": "encore dev-server", | ||
"dev": "encore dev", | ||
"watch": "encore dev --watch", | ||
"build": "encore production --progress" | ||
} | ||
} |
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
Oops, something went wrong.