Browse Source

webpack

master
Guillaume 3 years ago
parent
commit
c936b300cd
2 changed files with 7 additions and 1 deletions
  1. +6
    -0
      src/Controller/Admin/PageCrudController.php
  2. +1
    -1
      webpack.config.js

+ 6
- 0
src/Controller/Admin/PageCrudController.php View File

return Page::class; return Page::class;
} }


public function configureAssets(Assets $assets): Assets
{
$assets->addWebpackEncoreEntry('tabler') ;
return parent::configureAssets($assets); // TODO: Change the autogenerated stub
}

public function configureFields(string $pageName): iterable public function configureFields(string $pageName): iterable
{ {
return [ return [

+ 1
- 1
webpack.config.js View File

* and one CSS file (e.g. app.css) if your JavaScript imports CSS. * and one CSS file (e.g. app.css) if your JavaScript imports CSS.
*/ */
//.addEntry('backend-common', './assets/apps/backend/common/app.common.js') //.addEntry('backend-common', './assets/apps/backend/common/app.common.js')
.addEntry('backend-common', './Lc/SovBundle/Resources/assets/apps/backend/common/app.common.js')
.addEntry('tabler', './Lc/SovBundle/Resources/assets/apps/tabler/app.tabler.js')
//.addEntry('easyadmin', './vendor/easycorp/easyadmin-bundle/assets/js/app.js') //.addEntry('easyadmin', './vendor/easycorp/easyadmin-bundle/assets/js/app.js')


// enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js) // enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js)

Loading…
Cancel
Save