Skip to content

Commit

Permalink
fix webpack output
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucanis committed Aug 12, 2024
1 parent b4823c5 commit dbf19e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
6 changes: 3 additions & 3 deletions index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@

{% set blocks = [
{
"image": encore_manifest_file("dist/images/placeholder.webp"),
"image": asset("dist/images/placeholder.webp"),
alt: "Image desc",
"title": "Ici une phrase d’accroche pour accompagner le visuel",
"href": "#",
"linkLabel": "Je découvre"
},
{
"image": encore_manifest_file("dist/images/placeholder.webp"),
"image": asset("dist/images/placeholder.webp"),
alt: "Image desc",
"title": "Ici une phrase d’accroche pour accompagner le visuel",
"href": "#",
"linkLabel": "Je découvre"
},
{
"image": encore_manifest_file("dist/images/placeholder.webp"),
"image": asset("dist/images/placeholder.webp"),
alt: "Image desc",
"title": "Ici une phrase d’accroche pour accompagner le visuel",
"href": "#",
Expand Down
14 changes: 4 additions & 10 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Encore = require('@symfony/webpack-encore');
const path = require("path");
const path = require('path');

// Manually configure the runtime environment if not already configured yet by the "encore" command.
// It's useful when you use tools that rely on webpack.config.js file.
Expand All @@ -14,7 +14,7 @@ Encore
// public path used by the web server to access the output path
//.setPublicPath('/templates/frontOffice/flexy/public/build') ///build
.setPublicPath(
process.env.NODE_ENV === 'production'
Encore.isProduction()
? '/templates-assets/frontOffice/' + path.basename(__dirname) + '/dist'
: '/dist'
)
Expand Down Expand Up @@ -62,12 +62,9 @@ Encore
.configureWatchOptions((config) => {
config.ignored = /node_modules|dist/;
})
.configureDevServerOptions(options => {
.configureDevServerOptions((options) => {
options.allowedHosts = 'all';
})



});

// enables Sass/SCSS support
//.enableSassLoader()
Expand All @@ -84,9 +81,6 @@ Encore

// uncomment if you're having problems with a jQuery plugin
//.autoProvidejQuery()
;



// IMAGES CONFIG
Encore.copyFiles({
Expand Down

0 comments on commit dbf19e3

Please sign in to comment.